merge-dirs
node module to synchronously and recursively merge files from one folder to another
Last updated 9 years ago by binocarlos .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install merge-dirs 
SYNC missed versions from official npm registry.

merge-dirs

node module to synchronously and recursively merge files from one folder to another

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

$ merge-dirs folder/a folder/b --ask # for interactive mode

install

$ npm install merge-dirs

licence

MIT

Current Tags

  • 0.2.1                                ...           latest (9 years ago)

5 Versions

  • 0.2.1                                ...           9 years ago
  • 0.2.0                                ...           9 years ago
  • 0.1.0                                ...           9 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE