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

cp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cp - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

history.md

4

index.js
module.exports = require('./lib/cp');
module.exports = process.env.CP_COV
? require('./lib-cov/cp')
: require('./lib/cp');

@@ -11,2 +11,10 @@ 'use strict';

/**
* Copy file `src` to `dest`
*
* @api public
* @param {String} src
* @param {String} dest
* @param {Function} cb
*/
exports = module.exports = function (src, dest, cb) {

@@ -16,2 +24,4 @@ function next(err) {

done = true;
read.destroy();
write.destroy();
cb(err);

@@ -40,2 +50,9 @@ }

/**
* Synchronously copy file `src` to `dest`
*
* @api public
* @param {String} src
* @param {String} dest
*/
exports.sync = function (src, dest) {

@@ -42,0 +59,0 @@ if (!fs.existsSync(src)) {

{
"name": "cp",
"version": "0.1.0",
"version": "0.1.1",
"description": "cp for node",
"keywords": [],
"keywords": [
"fs",
"copy",
"cp"
],
"author": "Stephen Mathieson <me@stephenmathieson.com>",
"repository": {
"type": "git",
"url": "git://github.com/stephenmathieson/cp.git"
"url": "git://github.com/stephenmathieson/node-cp.git"
},

@@ -16,6 +20,15 @@ "dependencies": {},

"glob": "~3.2.1",
"garbage": "0.0.0"
"jshint": "~2.1.4"
},
"main": "index",
"license": "MIT"
"license": "MIT",
"bugs": {
"url": "https://github.com/stephenmathieson/node-cp/issues"
},
"directories": {
"test": "test"
},
"scripts": {
"test": "make test"
}
}

Sorry, the diff of this file is not supported yet

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