cp -R for node
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
License
Makefile
Readme.md
index.js
package.json

Readme.md

cp-r

cp -R for node with no options

Installation

With your favorite package manager:

  • packin: packin add cp-r
  • npm: npm install cp-r

then in your app:

var copy = require('cp-r')

API

copy(a, b)

Copy whatever is at a to b. Be that a file, directory, or symlink.

copy('test', 'tmp').read(function(){
  console.log('done!')
})