Comparing version 0.1.0 to 0.1.1
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
4129
7
66
1
2