Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ncp

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ncp - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

11

lib/ncp.js

@@ -119,7 +119,6 @@

}
fs.unlink(target, function (err) {
if (err) {
return onError(err);
}
return copyLink(resolvedPath, target);
return rmFile(link, function () {
process.nextTick(function () {
copyLink(resolvedPath, target);
});
});

@@ -134,3 +133,3 @@ });

if (/^EEXIST/.test(err.message)) {
console.log('warn: a symlink could not be created at %s', target);
console.log('warn: a symlink already exists at %s', target);
finished++;

@@ -137,0 +136,0 @@ return cb();

{
"name" : "ncp",
"version" : "0.1.0",
"version" : "0.1.1",
"author": "AvianFlu <charlie@charlieistheman.com>",

@@ -5,0 +5,0 @@ "description" : "Asynchronous recursive file copy utility.",

@@ -7,6 +7,8 @@ # ncp - Asynchronous recursive file & directory copying

Usage is simple: `ncp [source] [dest]`
Usage is simple: `ncp [source] [dest] [concurrency limit]`
If there are no errors, there will be no output.
The 'concurrency limit' is an integer that represents how many pending file system requests `ncp` has at a time.
If there are no errors, `ncp` will output `done.` when complete.
## Programmatic usage

@@ -19,2 +21,4 @@

ncp.limit = 16;
ncp(source, destination, function (err) {

@@ -21,0 +25,0 @@ if (err) {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc