Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kellyselden/fs-move
- Owner: kellyselden
- License: mit
- Created: 2019-04-06T15:22:07.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T16:39:43.000Z (about 2 months ago)
- Last Synced: 2024-12-26T03:11:39.754Z (about 1 month ago)
- Language: JavaScript
- Size: 664 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
}
});
```