Skip to content

fs-utils/cp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cp

NPM version Build status Test coverage Dependency Status License Downloads

A tiny utility to help you copy files:

  • Always cleans up file descriptors
  • mkdir -p support
  • Promise support
  • No half-written files
  • Insusceptible to race conditions, meaning you can do multiple copies fine

API

var cp = require('fs-cp')

// file to file
cp('package.json', 'package2.json').then(function () {

})

// stream to file
cp(res, 'response.json').then(function () {

})

About

copy a file or a stream to another file

Resources

License

Stars

Watchers

Forks

Packages

No packages published