Skip to content

arnaud-dezandee/node-cp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Version Build Status Test Coverage

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);
});

License

MIT

About

Node.js async recursive file copy

Resources

License

Stars

Watchers

Forks

Packages

No packages published