2.1.1 • Published 5 years ago

mv v2.1.1

Weekly downloads
1,004,622
License
MIT
Repository
github
Last release
5 years ago

Build Status

Usage:

var mv = require('mv');

mv('source/file', 'dest/file', function(err) {
  // done. it tried fs.rename first, and then falls back to
  // piping the source file to the dest file and then unlinking
  // the source file.
});

Another example:

mv('source/dir', 'dest/a/b/c/dir', {mkdirp: true}, function(err) {
  // done. it first created all the necessary directories, and then
  // tried fs.rename, then falls back to using ncp to copy the dir
  // to dest and then rimraf to remove the source dir
});

Another example:

mv('source/file', 'dest/file', {clobber: false}, function(err) {
  // done. If 'dest/file' exists, an error is returned
  // with err.code === 'EEXIST'.
});
fontbombtest-test-43h4h29423jibo-parserelectron-packager-itchiojumpfm-file-opstreos-local-configtreos-updatetransmutejstreebank2svgtui-apigee-generatorwohligwoowahan-cliwordpress-cliwow-amyqg-bunyan@quarks/theia-filesystem@poetri/cli@paulcbetts/electron-packager@paulcbetts/next@pawjs/pawjspetri-specs@worona/next@wiptheia/filesystem@ts-stack/logger@uuz.io/bunyan@unboundedsystems/verdaccio@visual-framework/create-vf-eleventy@visual-framework/create-vf-projectaction-moveaction-move-glia@youngapp/yap-cliam2-starter-projectandroid-generator-updatealmassetxascom-verdaccioatom-nuclideatom-package-managerappium-supportapp-filestoreapigee-generatorapiconnect-cli-loggeravocode-nextavet-buildautoconverterautofile-mvxcassetsxdlxplorerzeekazefir@interaktiv/dia-scripts@rtsao/verdaccio@reaktor-education/sanity-export-diff@restify-ts/logger@resin.io/next@rbotten/sanity-export-diff@shopify/slate@shoutem/cli@leancoders/infrahelper@leandro.camilo/react-native-rename@nakedobjects/schematicszenit-package-manager@gpittarelli/verdacciozohomobilesdkzohocrmsdk@hubject/usemin-cliysp_electron-download@mcgordonite/theia-filesystem@hexxeh/appium@irysius/utils@theia/filesystem@swmansion/xdlbunyan-yjbunyan-zadiabrowsers-binaries-standalonebuildebooksbutterbunyan-extendbunyan-sfdx-no-dtracebunyan-spbunyan-pertybunyanbrewery-core-clibrasscafe4c-zentrix_logs_systemcastor-admincecilcheesecakecspmdas-builddatatables.net-editor-servercraft-makercsak-rest-fscp-fileutilcreate-fincite-next-appcsp-clicode-projectscoc.nvim
2.1.1

5 years ago

2.1.0

5 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago