0.1.1 • Published 10 years ago
stream-cp v0.1.1
stream-cp
cp for node.js with stream
Installation
$ npm install stream-cp
Example
var cp = require('./');
cp('test/fixture', 'test/expected', function(file) {
return 'prefix_' + file;
}, function(err) {
console.log('done');
});
the example code will bring a result like this:
Usage
cp(src, dst, map, callback)
Arguments
src
: source folder pathdst
: destnation pathmap
: the function which is used to map the original file names to new filenames.callback
: if error occured, it will passed to the callback function.
License
MIT © Leigh Zhu