{"_id":"@crispengari/fsmove","_rev":"3-98f6b04717a7d69be6e4b8a8d5c18dec","name":"@crispengari/fsmove","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.2":{"name":"@crispengari/fsmove","version":"1.0.2","description":"cmd commands","main":"src index.ts","license":"MIT","bin":{"fsmove":"src/index.ts"},"author":{"name":"CrispenGari"},"scripts":{"start":"ts-node src/index.ts"},"repository":{"type":"git","url":"git+https://github.com/CrispenGari/fsmove.git"},"dependencies":{"@types/inquirer":"^7.3.3","@types/node":"^16.7.0","@types/npm":"^7.19.0","ts-node":"^10.2.1","typescript":"^4.3.5"},"devDependencies":{"nodemon":"^2.0.12"},"bugs":{"url":"https://github.com/CrispenGari/fsmove/issues"},"homepage":"https://github.com/CrispenGari/fsmove#readme","keywords":["typescript","fsmove","javascript","js","commands","move","rm","rename"],"gitHead":"6c7fce3ac7635589fec72925ac1b3b759141ffc8","_id":"@crispengari/fsmove@1.0.2","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-x05m9S1A0+kMuTAdLWvmEmIlO4WRoBtD0H7qp0d58FF0+Q0y7GWYY4VZO2Fkf+rll1x++e71oDu6rsk3dGEwzA==","shasum":"9ed5b41a7e7c353ec35a6d84d4ae1a4bff6bcc61","tarball":"https://registry.npmjs.org/@crispengari/fsmove/-/fsmove-1.0.2.tgz","fileCount":5,"unpackedSize":5117,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFrAy0t+4cXKZM4DJqH83yZ/PptX3yldEDg71D9ZjdfRAiEAmA+d7plpOCjJo5BBXXKZueQaIr43z48dnfh6TM9D6Zw="}]},"_npmUser":{"name":"crispengari","email":"crispendev@gmail.com"},"directories":{},"maintainers":[{"name":"crispengari","email":"crispendev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fsmove_1.0.2_1636372618707_0.7429484720097286"},"_hasShrinkwrap":false},"1.0.3":{"name":"@crispengari/fsmove","version":"1.0.3","description":"cmd commands","license":"MIT","author":{"name":"CrispenGari"},"main":"lib/index.js","types":"lib","scripts":{"watch":"tsc -w","start":"ts-node src/index.ts"},"repository":{"type":"git","url":"git+https://github.com/CrispenGari/fsmove.git"},"dependencies":{"@types/inquirer":"^7.3.3","@types/node":"^16.7.0","@types/npm":"^7.19.0","ts-node":"^10.2.1","tsc":"^2.0.3","typescript":"^4.3.5"},"devDependencies":{"nodemon":"^2.0.12"},"bugs":{"url":"https://github.com/CrispenGari/fsmove/issues"},"homepage":"https://github.com/CrispenGari/fsmove#readme","keywords":["typescript","fsmove","javascript","js","commands","move","rm","rename"],"gitHead":"d9372712af6b4f91be95af0903377c4e7210c059","_id":"@crispengari/fsmove@1.0.3","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-TyFUIpbTyo8C0oi1IZb7xY8hftjNT2YNZ30/4Q8TH09DPnyE6pLr2KjXDzh+ACwGZfeUEURmDIPbf2QrPn0iOw==","shasum":"d94d95879affb16f29fa687f81d1b74e4d853ec2","tarball":"https://registry.npmjs.org/@crispengari/fsmove/-/fsmove-1.0.3.tgz","fileCount":9,"unpackedSize":7290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzeMqCRA9TVsSAnZWagAANnkP/15ksagxLnxseZ+piZtP\nB3wFF2LqDGVonXnfFOQguXh0To+VoywMhq6CHsuW4ujLoTyp1Wp2Mr8Pbm+H\nU05l6jvfOZusw/iG2zoqif27y7QQTisEQG06gAqeCJMzvvmx23lMRjmY6BJm\n6e8E/PuamxtcLO7mPsIZhroByrrzg8maBBbOi1lbnNlGPIGbFy51mZqvhAgL\nCN9Urq4reVVKhwSw7+T/s9LuGZngSSjOn9yBJMpAnZbkeDXr5pzJ6i5LCrtC\nzqa9tpYDgeqF1lmn6NEPY/U2E3av2X2zRR5RdKQgnLaFDMpgcmFFjmbfuQH+\nBWPVVcgQ1CT87Xyvjlx9FDLg+iUcERaGnNKngHLIF25nyGbaPBoOTxcjww8n\np+Ybslt7wXWlxVhrdShS3l5sR2j32PtaWHGOsGHhOqvf0oLvoyX/zhgEaKRw\neK0HWHsfy9ElAC4K1CyjoP5jikHwdrnYdl/ApzU5KPp3qdqWOPaFHeIDedjc\ngvlwPqTk2t6/GlI8z+KfP0bv7mbKYRXOjbotEziiBYyip2GyCHokHI9Bm/KS\noA0D3Z2+VJk5e0uz4NepODnJOydzkF+riDTrVpaagmwdeBsRQdTYluefVQO7\nJwBfi73MqMun2JkcjFsEUTIKWhb4YM39YgwPwZ1T5iqoGIx6ymEXNLmSYIIc\nVDmN\r\n=o0/D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAxmaU2JN07N9zg91ZBWnWBZL0hubjwRkx3ie0XsOgKQIhAMYYYsNM+/OIvj1aLRwjeF5Wz7mxkID/UOJLqpQKKhTl"}]},"_npmUser":{"name":"crispengari","email":"crispendev@gmail.com"},"directories":{},"maintainers":[{"name":"crispengari","email":"crispendev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fsmove_1.0.3_1636373424889_0.36228700985610196"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-08T11:56:58.650Z","1.0.2":"2021-11-08T11:56:58.859Z","modified":"2022-04-05T01:49:57.113Z","1.0.3":"2021-11-08T12:10:24.991Z"},"maintainers":[{"name":"crispengari","email":"crispendev@gmail.com"}],"description":"cmd commands","homepage":"https://github.com/CrispenGari/fsmove#readme","keywords":["typescript","fsmove","javascript","js","commands","move","rm","rename"],"repository":{"type":"git","url":"git+https://github.com/CrispenGari/fsmove.git"},"author":{"name":"CrispenGari"},"bugs":{"url":"https://github.com/CrispenGari/fsmove/issues"},"license":"MIT","readme":"### @crispengari/fsmove\r\n\r\nThis package is build on top of the native `fs` package in node.js. It brings the interface of moving `files` or `folders` from one path to the other.\r\n\r\n### Installation\r\n\r\n1. yarn\r\n\r\n```shell\r\nyarn add @crispengari/fsmove\r\n\r\n```\r\n\r\n2. npm\r\n\r\n```shell\r\nnpm install @crispengari/fsmove\r\n```\r\n\r\n### Usage\r\n\r\nTo use this package is very simple. All you need to do is to provide the path for the `source` and the path of the `destination` to the `move` function to move files or folders.\r\n\r\n### Examples\r\n\r\n1. `es6` typescript example\r\n\r\n```ts\r\nimport { move } from \"@crispengari/fsmove\";\r\n\r\nconst source: string = \"/path/source/filename.ext\";\r\nconst destination: string = \"/path/destination/filename.ext\";\r\n\r\nconst moveFile = async () => {\r\n  console.log(await move(source, destination)); // returns true on success\r\n};\r\n\r\nmoveFile();\r\n```\r\n\r\n2. `es6` javascript example\r\n\r\n```js\r\nimport { move } from \"@crispengari/fsmove\";\r\n\r\nconst source = \"/path/source/filename.ext\";\r\nconst destination = \"/path/destination/filename.ext\";\r\n\r\nconst moveFile = async () => {\r\n  console.log(await move(source, destination)); // returns true on success\r\n};\r\n\r\nmoveFile();\r\n```\r\n\r\n3. `es5` javascript example.\r\n\r\n```js\r\nconst { move } = require(\"@crispengari/fsmove\");\r\n\r\nconst source = \"/path/source/filename.ext\";\r\nconst destination = \"/path/destination/filename.ext\";\r\n\r\nasync function moveFile() {\r\n  console.log(await move(source, destination)); // returns true on success\r\n}\r\n\r\nmoveFile();\r\n```\r\n\r\n### Why this simple package?\r\n\r\nI created this package, so that i can reuse it whenever i want to deal with moving files and folders around in node.js. I created this package because i wanted to use it on my toy project [fmanager](https://github.com/CrispenGari/fmanager) to move files and folders from one folder to another.\r\n","readmeFilename":"README.md"}