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

cpr

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpr - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

lib/index.js

@@ -204,3 +204,3 @@ /*

exports.cpr = function (from, to, opts, callback) {
var cpr = function(from, to, opts, callback) {
if (typeof opts === 'function') {

@@ -266,1 +266,6 @@ callback = opts;

};
//Preserve backward compatibility
cpr.cpr = cpr;
//Export a function
module.exports = cpr;

9

package.json

@@ -5,3 +5,3 @@ {

"author": "Dav Glass <davglass@gmail.com>",
"version": "0.1.0",
"version": "0.1.1",
"dependencies": {

@@ -19,8 +19,11 @@ "graceful-fs": "~1.2.0",

},
"contributors": [
{ "name": "Elijah Insua", "email": "tmpvar@gmail.com" }
],
"keywords": [
"copy", "recursive"
"copy", "recursive", "cp -r", "cp"
],
"scripts": {
"pretest": "jshint --config ./node_modules/yui-lint/jshint.json ./lib/",
"windows-test": "vows --spec ./tests/full.js",
"windows-test": "vows --spec ./tests/full.js",
"test": "istanbul cover --print both -- vows --spec ./tests/full.js"

@@ -27,0 +30,0 @@ },

@@ -24,3 +24,5 @@ CPR (cp -R)

var cpr = require('cpr').cpr;
var cpr = require('cpr');
//or
var cpr = require('cpr').cpr; //Back compat

@@ -27,0 +29,0 @@ cpr('/path/from', '/path/to', {

@@ -17,3 +17,6 @@ var vows = require('vows'),

},
'should have cpr method': function (topic) {
'should export raw method': function (topic) {
assert.isFunction(topic);
},
'and should export cpr method too': function (topic) {
assert.isFunction(topic.cpr);

@@ -27,3 +30,3 @@ },

this.outDir = out;
cpr.cpr(from, out, function(err, status) {
cpr(from, out, function(err, status) {
var t = {

@@ -65,3 +68,3 @@ status: status,

this.outDir = out;
cpr.cpr(from, out, {
cpr(from, out, {
filter: /node_modules/

@@ -92,3 +95,3 @@ }, function(err) {

this.outDir = out;
cpr.cpr(from, out, {
cpr(from, out, {
confirm: true,

@@ -134,3 +137,3 @@ overwrite: true,

this.outDir = out;
cpr.cpr(from, out, {
cpr(from, out, {
confirm: true,

@@ -179,4 +182,4 @@ deleteFirst: true,

cpr.cpr(from, out, function() {
cpr.cpr(from, out, {
cpr(from, out, function() {
cpr(from, out, {
overwrite: true,

@@ -220,3 +223,3 @@ confirm: true

var self = this;
cpr.cpr('./does/not/exist', path.join(to, 'does/not/matter'), function(err, status) {
cpr('./does/not/exist', path.join(to, 'does/not/matter'), function(err, status) {
self.callback(null, {

@@ -237,3 +240,3 @@ err: err,

var self = this;
cpr.cpr(__filename, path.join(to, 'does/not/matter'), function(err, status) {
cpr(__filename, path.join(to, 'does/not/matter'), function(err, status) {
self.callback(null, {

@@ -240,0 +243,0 @@ err: err,

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