Nameless Package Manager
Learn how companies like Phone2Action are using npm in their front-end developmentJoin the conversation »

fs-move

2.0.1 • Public • Published

fs-move

npm version Build Status

Move directory with options

const move = require('fs-move');
 
(async () => {
  await move(src, dest, {
    merge: false,
    overwrite: false,
    purge: false,
    filter(src, dest) {
      return true;
    }
  });
})();
 
// or using callback
move(src, dest, err => {
  if (err) {
    throw err;
  }
});

Install

npm i fs-move

DownloadsWeekly Downloads

8

Version

2.0.1

License

MIT

Unpacked Size

4.65 kB

Total Files

4

Last publish

Collaborators

  • avatar