Socket
Socket
Sign inDemoInstall

fs-cp

Package Overview
Dependencies
9
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fs-cp

copy a file or a stream to another file


Version published
Weekly downloads
2K
increased by28.07%
Maintainers
1
Install size
113 kB
Created
Weekly downloads
 

Readme

Source

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 () {

})

Keywords

FAQs

Last updated on 28 Feb 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc