cp-r

cp -r for node with no options!

Usage no npm install needed!

<script type="module">
  import cpR from 'https://cdn.skypack.dev/cp-r';
</script>

README

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!')
})