Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/merge-dirs
node module to synchronously and recursively merge files from one folder to another
https://github.com/binocarlos/merge-dirs
Last synced: 10 days ago
JSON representation
node module to synchronously and recursively merge files from one folder to another
- Host: GitHub
- URL: https://github.com/binocarlos/merge-dirs
- Owner: binocarlos
- Created: 2013-12-17T23:57:29.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-02-10T12:49:51.000Z (almost 6 years ago)
- Last Synced: 2024-10-31T16:47:08.981Z (19 days ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 18
- Watchers: 4
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
merge-dirs
==========node module to synchronously and recursively merge files from one folder to another
```js
var mergedirs = require('merge-dirs');// copy folder/a into folder/b
mergedirs('/folder/a', '/folder/b');
// copy folder/a into folder/b with conflict resolution 'overwrite'
mergedirs('/folder/a', '/folder/b', 'overwrite');
// copy folder/a into folder/b with conflict resolution 'ask'
mergedirs('/folder/a', '/folder/b', 'ask');
// copy folder/a into folder/b with conflict resolution 'skip'
mergedirs('/folder/a', '/folder/b', 'skip');
```mergedirs can also be used from the command line
``` bash
$ merge-dirs folder/a folder/b --ask # for interactive mode
```## install
```
$ npm install merge-dirs
```## licence
MIT