0.1.1 • Published 9 years ago
node-cp v0.1.1
node-cp
cp -r
for Node.js
Install with npm install node-cp
API
cp(source, destination, callback)
The callback will be called with an error if there is one and with an nested array of copied files names
Usage
Usage of node-cp
is simple
var cp = require('node-cp');
cp(source, destination, function (err, files) {
if (err) {
return console.error(err);
}
console.log('Copied files', files);
});