{"_id":"@npmcli/move-file","_rev":"2916690","name":"@npmcli/move-file","description":"move a file (fork of move-file)","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"time":{"modified":"2023-02-01T08:56:58.000Z","created":"2020-06-02T23:49:16.235Z","3.0.0":"2022-10-14T05:23:12.377Z","2.0.1":"2022-08-15T19:53:18.178Z","2.0.0":"2022-04-05T17:01:50.746Z","1.1.2":"2021-02-11T18:16:09.694Z","1.1.1":"2021-01-28T18:25:44.053Z","1.1.0":"2021-01-14T17:05:45.311Z","1.0.1":"2020-06-02T23:53:54.901Z","1.0.0":"2020-06-02T23:49:16.235Z"},"users":{},"author":{"name":"GitHub Inc."},"repository":{"type":"git","url":"git+https://github.com/npm/move-file.git"},"versions":{"3.0.0":{"name":"@npmcli/move-file","version":"3.0.0","main":"lib/index.js","description":"move a file (fork of move-file)","dependencies":{"mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@npmcli/eslint-config":"^3.0.1","@npmcli/template-oss":"4.5.1","tap":"^16.0.1"},"scripts":{"test":"tap","snap":"tap","lint":"eslint \"**/*.js\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","posttest":"npm run lint"},"repository":{"type":"git","url":"git+https://github.com/npm/move-file.git"},"tap":{"check-coverage":true,"nyc-arg":["--exclude","tap-snapshots/**"]},"license":"MIT","engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"author":{"name":"GitHub Inc."},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.5.1"},"gitHead":"a40209e5de23279d07d210e0eb6c895f9423f057","bugs":{"url":"https://github.com/npm/move-file/issues"},"homepage":"https://github.com/npm/move-file#readme","_id":"@npmcli/move-file@3.0.0","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"shasum":"3e1be5c880c9ba2d9c6453709d3ffd2d7a4cf192","size":3108,"noattachment":false,"key":"/@npmcli/move-file/-/@npmcli/move-file-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/move-file/download/@npmcli/move-file-3.0.0.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/move-file_3.0.0_1665724992212_0.9622735402444793"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-18T10:34:03.216Z","deprecated":"This functionality has been moved to @npmcli/fs","publish_time":1665724992377,"_cnpm_publish_time":1665724992377},"2.0.1":{"name":"@npmcli/move-file","version":"2.0.1","main":"lib/index.js","description":"move a file (fork of move-file)","dependencies":{"mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@npmcli/eslint-config":"^3.0.1","@npmcli/template-oss":"3.5.0","tap":"^16.0.1"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","lint":"eslint \"**/*.js\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","posttest":"npm run lint"},"repository":{"type":"git","url":"git+https://github.com/npm/move-file.git"},"tap":{"check-coverage":true},"license":"MIT","engines":{"node":"^12.13.0 || ^14.15.0 || >=16.0.0"},"author":{"name":"GitHub Inc."},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"3.5.0"},"gitHead":"9aacf1b5a6b861c08049c591279f9131bfcee3b6","bugs":{"url":"https://github.com/npm/move-file/issues"},"homepage":"https://github.com/npm/move-file#readme","_id":"@npmcli/move-file@2.0.1","_nodeVersion":"18.6.0","_npmVersion":"8.17.0","dist":{"shasum":"26f6bdc379d87f75e55739bab89db525b06100e4","size":3112,"noattachment":false,"key":"/@npmcli/move-file/-/@npmcli/move-file-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/move-file/download/@npmcli/move-file-2.0.1.tgz"},"_npmUser":{"name":"gar","email":"gar+npm@danger.computer"},"directories":{},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/move-file_2.0.1_1660593197869_0.08648921658502617"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-15T19:53:22.090Z","publish_time":1660593198178,"deprecated":"This functionality has been moved to @npmcli/fs","_cnpm_publish_time":1660593198178},"2.0.0":{"name":"@npmcli/move-file","version":"2.0.0","main":"lib/index.js","description":"move a file (fork of move-file)","dependencies":{"mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@npmcli/eslint-config":"^3.0.1","@npmcli/template-oss":"3.2.2","tap":"^16.0.1"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","lint":"eslint \"**/*.js\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","posttest":"npm run lint"},"repository":{"type":"git","url":"git+https://github.com/npm/move-file.git"},"tap":{"check-coverage":true},"license":"MIT","engines":{"node":"^12.13.0 || ^14.15.0 || >=16.0.0"},"author":{"name":"GitHub Inc."},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"3.2.2"},"gitHead":"5f2b1e2590a2d68e416261461b657d4b928bee7e","bugs":{"url":"https://github.com/npm/move-file/issues"},"homepage":"https://github.com/npm/move-file#readme","_id":"@npmcli/move-file@2.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.6.0","dist":{"shasum":"417f585016081a0184cef3e38902cd917a9bbd02","size":3100,"noattachment":false,"key":"/@npmcli/move-file/-/@npmcli/move-file-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/move-file/download/@npmcli/move-file-2.0.0.tgz"},"_npmUser":{"name":"gar","email":"gar+npm@danger.computer"},"directories":{},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/move-file_2.0.0_1649178110584_0.03102262175536752"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-05T19:27:16.157Z","publish_time":1649178110746,"deprecated":"This functionality has been moved to @npmcli/fs","_cnpm_publish_time":1649178110746},"1.1.2":{"name":"@npmcli/move-file","version":"1.1.2","description":"move a file (fork of move-file)","dependencies":{"mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"require-inject":"^1.4.4","tap":"^14.10.7"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/npm/move-file.git"},"tap":{"check-coverage":true},"license":"MIT","engines":{"node":">=10"},"gitHead":"ab492effd59f8e4a4dbcc01096762cad55e7cd3c","bugs":{"url":"https://github.com/npm/move-file/issues"},"homepage":"https://github.com/npm/move-file#readme","_id":"@npmcli/move-file@1.1.2","_nodeVersion":"14.15.4","_npmVersion":"7.5.3","dist":{"shasum":"1a82c3e372f7cae9253eb66d72543d6b8685c674","size":2920,"noattachment":false,"key":"/@npmcli/move-file/-/@npmcli/move-file-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/move-file/download/@npmcli/move-file-1.1.2.tgz"},"_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"directories":{},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/move-file_1.1.2_1613067369580_0.17679168246179722"},"_hasShrinkwrap":false,"publish_time":1613067369694,"_cnpm_publish_time":1613067369694,"deprecated":"This functionality has been moved to @npmcli/fs"},"1.1.1":{"name":"@npmcli/move-file","version":"1.1.1","description":"move a file (fork of move-file)","dependencies":{"mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"require-inject":"^1.4.4","tap":"^14.10.7"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/npm/move-file.git"},"tap":{"check-coverage":true},"license":"MIT","engines":{"node":">=10"},"gitHead":"c9cddf19ff6ae9411be87969252fb0c8a9a78f6e","bugs":{"url":"https://github.com/npm/move-file/issues"},"homepage":"https://github.com/npm/move-file#readme","_id":"@npmcli/move-file@1.1.1","_nodeVersion":"14.15.1","_npmVersion":"7.4.0","dist":{"shasum":"31a3afae95308ef12f58ac147b3e33aae621241d","size":2901,"noattachment":false,"key":"/@npmcli/move-file/-/@npmcli/move-file-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/move-file/download/@npmcli/move-file-1.1.1.tgz"},"_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"directories":{},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/move-file_1.1.1_1611858343898_0.8302354221735282"},"_hasShrinkwrap":false,"publish_time":1611858344053,"_cnpm_publish_time":1611858344053,"deprecated":"This functionality has been moved to @npmcli/fs"},"1.1.0":{"name":"@npmcli/move-file","version":"1.1.0","description":"move a file (fork of move-file)","dependencies":{"mkdirp":"^1.0.4","rimraf":"^2.7.1"},"devDependencies":{"require-inject":"^1.4.4","tap":"^14.10.7"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/npm/move-file.git"},"tap":{"check-coverage":true},"license":"MIT","engines":{"node":">=10"},"gitHead":"7c0a48614a02893ce601edacbd2b4463d5df7493","bugs":{"url":"https://github.com/npm/move-file/issues"},"homepage":"https://github.com/npm/move-file#readme","_id":"@npmcli/move-file@1.1.0","_nodeVersion":"14.15.4","_npmVersion":"7.4.0","dist":{"shasum":"4ef8a53d727b9e43facf35404caf55ebf92cfec8","size":2902,"noattachment":false,"key":"/@npmcli/move-file/-/@npmcli/move-file-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/move-file/download/@npmcli/move-file-1.1.0.tgz"},"_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"directories":{},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/move-file_1.1.0_1610643945143_0.7899476785859194"},"_hasShrinkwrap":false,"publish_time":1610643945311,"_cnpm_publish_time":1610643945311,"deprecated":"This functionality has been moved to @npmcli/fs"},"1.0.1":{"name":"@npmcli/move-file","version":"1.0.1","description":"move a file (fork of move-file)","dependencies":{"mkdirp":"^1.0.4"},"devDependencies":{"require-inject":"^1.4.4","tap":"^14.10.7"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/npm/move-file.git"},"tap":{"check-coverage":true},"license":"MIT","engines":{"node":">=10"},"gitHead":"c2081b7c1528a3d948ab9d8ffba5e2a3d6b197b1","bugs":{"url":"https://github.com/npm/move-file/issues"},"homepage":"https://github.com/npm/move-file#readme","_id":"@npmcli/move-file@1.0.1","_nodeVersion":"14.2.0","_npmVersion":"6.14.5","dist":{"shasum":"de103070dac0f48ce49cf6693c23af59c0f70464","size":2267,"noattachment":false,"key":"/@npmcli/move-file/-/@npmcli/move-file-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/move-file/download/@npmcli/move-file-1.0.1.tgz"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/move-file_1.0.1_1591142034779_0.7981442693487335"},"_hasShrinkwrap":false,"publish_time":1591142034901,"_cnpm_publish_time":1591142034901,"deprecated":"This functionality has been moved to @npmcli/fs"},"1.0.0":{"name":"@npmcli/move-file","version":"1.0.0","description":"move a file (fork of move-file)","dependencies":{"mkdirp":"^1.0.4"},"devDependencies":{"require-inject":"^1.4.4","tap":"^14.10.7"},"scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/npm/move-file.git"},"tap":{"check-coverage":true},"license":"MIT","gitHead":"87340c2856f495058c6aacbdd6b4747b4e7765fd","bugs":{"url":"https://github.com/npm/move-file/issues"},"homepage":"https://github.com/npm/move-file#readme","_id":"@npmcli/move-file@1.0.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.5","dist":{"shasum":"f50a712695100a96c04163b15fcbed9417fc7a8c","size":2253,"noattachment":false,"key":"/@npmcli/move-file/-/@npmcli/move-file-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/move-file/download/@npmcli/move-file-1.0.0.tgz"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/move-file_1.0.0_1591141756117_0.17984452306055188"},"_hasShrinkwrap":false,"publish_time":1591141756235,"_cnpm_publish_time":1591141756235,"deprecated":"This functionality has been moved to @npmcli/fs"}},"readme":"# @npmcli/move-file\n\nA fork of [move-file](https://github.com/sindresorhus/move-file) with\ncompatibility with all node 10.x versions.\n\n> Move a file (or directory)\n\nThe built-in\n[`fs.rename()`](https://nodejs.org/api/fs.html#fs_fs_rename_oldpath_newpath_callback)\nis just a JavaScript wrapper for the C `rename(2)` function, which doesn't\nsupport moving files across partitions or devices. This module is what you\nwould have expected `fs.rename()` to be.\n\n## Highlights\n\n- Promise API.\n- Supports moving a file across partitions and devices.\n- Optionally prevent overwriting an existing file.\n- Creates non-existent destination directories for you.\n- Support for Node versions that lack built-in recursive `fs.mkdir()`\n- Automatically recurses when source is a directory.\n\n## Install\n\n```\n$ npm install @npmcli/move-file\n```\n\n## Usage\n\n```js\nconst moveFile = require('@npmcli/move-file');\n\n(async () => {\n\tawait moveFile('source/unicorn.png', 'destination/unicorn.png');\n\tconsole.log('The file has been moved');\n})();\n```\n\n## API\n\n### moveFile(source, destination, options?)\n\nReturns a `Promise` that resolves when the file has been moved.\n\n### moveFile.sync(source, destination, options?)\n\n#### source\n\nType: `string`\n\nFile, or directory, you want to move.\n\n#### destination\n\nType: `string`\n\nWhere you want the file or directory moved.\n\n#### options\n\nType: `object`\n\n##### overwrite\n\nType: `boolean`\\\nDefault: `true`\n\nOverwrite existing destination file(s).\n","_attachments":{},"homepage":"https://github.com/npm/move-file#readme","bugs":{"url":"https://github.com/npm/move-file/issues"},"license":"MIT"}