Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kellyselden/fs-move

Move directory with options
https://github.com/kellyselden/fs-move

Last synced: 16 days ago
JSON representation

Move directory with options

Awesome Lists containing this project

README

        

# fs-move

[![npm version](https://badge.fury.io/js/fs-move.svg)](https://badge.fury.io/js/fs-move)

Move directory with options

```js
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;
}
});
```