node-cpdir
v1.0.0
Published
A tool to copy a directory to another.
Downloads
15
Readme
node
a async copydir utils with no dependencies for nodejs
Installing
npm i node-cpdir
or
yarn add node-cpdir
Usage
cpdir('path/from', 'path/to')
Example
move directory named 'aaa' to 'bbb' directory
const cpdir = require('node-cpdir')
cpdir('./aaa', './bbb').then(() => {
// succeed!
}, (err) => {
console.log(err)
})