Socket
Socket
Sign inDemoInstall

cpy-cli

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpy-cli - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

31

cli.js

@@ -8,3 +8,3 @@ #!/usr/bin/env node

Usage
$ cpy <source>... <destination>
$ cpy <source …> <destination>

@@ -45,14 +45,19 @@ Options

cpy(cli.input, cli.input.pop(), {
cwd: cli.flags.cwd,
rename: cli.flags.rename,
parents: cli.flags.parents,
overwrite: cli.flags.overwrite
}).catch(err => {
if (err.name === 'CpyError') {
console.error(err.message);
process.exit(1);
} else {
throw err;
(async () => {
try {
await cpy(cli.input, cli.input.pop(), {
cwd: cli.flags.cwd,
rename: cli.flags.rename,
parents: cli.flags.parents,
overwrite: cli.flags.overwrite
});
} catch (error) {
if (error.name === 'CpyError') {
console.error(error.message);
process.exit(1);
} else {
throw error;
}
}
});
})();
{
"name": "cpy-cli",
"version": "2.0.0",
"version": "3.0.0",
"description": "Copy files",
"license": "MIT",
"repository": "sindresorhus/cpy-cli",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {

@@ -23,3 +24,3 @@ "name": "Sindre Sorhus",

"engines": {
"node": ">=6"
"node": ">=8"
},

@@ -53,12 +54,12 @@ "scripts": {

"dependencies": {
"cpy": "^7.0.0",
"cpy": "^8.0.0",
"meow": "^5.0.0"
},
"devDependencies": {
"ava": "*",
"execa": "^0.10.0",
"path-exists": "^3.0.0",
"tempfile": "^2.0.0",
"xo": "*"
"ava": "^2.4.0",
"execa": "^1.0.0",
"path-exists": "^4.0.0",
"tempfile": "^3.0.0",
"xo": "^0.25.3"
}
}

@@ -5,3 +5,2 @@ # cpy-cli [![Build Status](https://travis-ci.org/sindresorhus/cpy-cli.svg?branch=master)](https://travis-ci.org/sindresorhus/cpy-cli)

## Why

@@ -14,3 +13,2 @@

## Install

@@ -22,3 +20,2 @@

## Usage

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

Usage
$ cpy <source>... <destination>
$ cpy <source …> <destination>

@@ -49,10 +46,4 @@ Options

## Related
- [cpy](https://github.com/sindresorhus/cpy) - API for this module
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
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