Comparing version 0.0.1 to 0.0.2
@@ -18,3 +18,3 @@ var gulp = require('gulp') | ||
function copys(srcs, dsts, cb) { | ||
function copys2(srcs, dsts, cb) { | ||
if(srcs.length !== dsts.length) { | ||
@@ -36,2 +36,2 @@ throw new Error('路径数组不相等') | ||
module.exports = copys | ||
module.exports = copys2 |
{ | ||
"name": "copys2", | ||
"version": "0.0.1", | ||
"description": "copys", | ||
"version": "0.0.2", | ||
"description": "copys2", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -8,3 +8,3 @@ # copys2 | ||
```js | ||
var copys = require('copys') | ||
var copys2 = require('copys2') | ||
var srcs = [ | ||
@@ -18,5 +18,5 @@ 'test1.txt', | ||
] | ||
copys(srcs, dsts, () => { | ||
copys2(srcs, dsts, () => { | ||
console.log('ok') | ||
}) | ||
``` |
var path = require('path') | ||
var copys = require('../index') | ||
var copys2 = require('../index') | ||
var srcs = [ | ||
@@ -11,4 +11,4 @@ path.join(__dirname, 'src', 'test1.txt'), | ||
] | ||
copys(srcs, dsts, () => { | ||
copys2(srcs, dsts, () => { | ||
console.log('ok') | ||
}) |
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
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
1788