Comparing version 3.3.1 to 3.4.0
@@ -9,6 +9,6 @@ #!/usr/bin/env node | ||
'Usage', | ||
' $ cpy <source> <destination> [--no-overwrite] [--parents] [--cwd=<dir>] [--rename=<filename>]', | ||
' $ cpy <source>... <destination> [--no-overwrite] [--parents] [--cwd=<dir>] [--rename=<filename>]', | ||
'', | ||
'Example', | ||
' $ cpy \'src/*.png\' dist', | ||
' $ cpy \'src/*.png\' \'!src/goat.png\' dist', | ||
'', | ||
@@ -39,3 +39,4 @@ 'Options', | ||
try { | ||
cpy([cli.input[0]], cli.input[1], { | ||
var dest = cli.input.pop(); | ||
cpy(cli.input, dest, { | ||
cwd: cli.flags.cwd || process.cwd(), | ||
@@ -42,0 +43,0 @@ rename: cli.flags.rename, |
{ | ||
"name": "cpy", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "Copy files", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -23,3 +23,3 @@ # cpy [![Build Status](https://travis-ci.org/sindresorhus/cpy.svg?branch=master)](https://travis-ci.org/sindresorhus/cpy) | ||
cpy(['src/*.png'], 'dist', function (err) { | ||
cpy(['src/*.png', '!src/goat.png'], 'dist', function (err) { | ||
console.log('files copied'); | ||
@@ -89,6 +89,6 @@ }); | ||
Usage | ||
$ cpy <source> <destination> [--no-overwrite] [--parents] [--cwd=<dir>] [--rename=<filename>] | ||
$ cpy <source>... <destination> [--no-overwrite] [--parents] [--cwd=<dir>] [--rename=<filename>] | ||
Example | ||
$ cpy 'src/*.png' dist | ||
$ cpy 'src/*.png' '!src/goat.png' dist | ||
@@ -95,0 +95,0 @@ Options |
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
6883
101