This documentation is very much work in progress still, please be patient and forgive me my laziness!
Copies multiple files with globs, streams, progress events, parallel execution and a panda.
Add it to your project's dependencies:
npm install mcopy --save
Pull it into your code:
const mcopy = require('mcopy');
Run it:
mcopy('/path/to/source/dir/**', '/path/to/dest/dir', (err) => {
if (err) console.log('Boo!');
else console.log('Paw!');
});
Single copy job syntax:
// Shorthand
mcopy(<source>, <destination>, {...<options>}, <callback>);
// Verbose
mcopy({"src": <source>, "dest": <destination>}, {...<options>}, <callback>);
Multiple copy jobs syntax:
// Shorthand
mcopy([[<source>, <destination>], ...], {...<options>}, <callback>);
// Verbose
mcopy([{"src": <source>, "dest": <destination>}, ...], {...<options>}, <callback>);