Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-cp

Adezandee31MIT0.1.1

Node.js async recursive file copy

copy, cp, recursive, fs, file

readme

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