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

cpy

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpy - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

14

cli.js

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

'Usage',
' $ cpy <source> <destination> [--no-overwrite]',
' $ cpy <source> <destination> [--no-overwrite] [--parents] [--cwd <dir>]',
'',

@@ -15,3 +15,7 @@ 'Example',

'',
'<source> can contain globs if quoted'
'Options',
' --parents Preseve path structure',
' --cwd <dir> Working directory for source files',
'',
'<source> can contain globs if quoted',
].join('\n')

@@ -34,5 +38,9 @@ }, {

try {
cpy([cli.input[0]], cli.input[1], {overwrite: cli.flags.overwrite}, errorHandler);
cpy([cli.input[0]], cli.input[1], {
cwd: cli.flags.cwd || process.cwd(),
parents: cli.flags.parents,
overwrite: cli.flags.overwrite
}, errorHandler);
} catch (err) {
errorHandler(err);
}
{
"name": "cpy",
"version": "3.1.0",
"version": "3.2.0",
"description": "Copy files",
"license": "MIT",
"repository": "sindresorhus/cpy",
"bin": {
"cpy": "cli.js"
},
"author": {

@@ -22,2 +19,3 @@ "name": "Sindre Sorhus",

],
"bin": "cli.js",
"engines": {

@@ -34,4 +32,4 @@ "node": ">=0.10.0"

"keywords": [
"cli-app",
"cli",
"bin",
"copy",

@@ -38,0 +36,0 @@ "cp",

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

- Fast by using streams.
- Resilient by using [graceful-fs](https://github.com/isaacs/node-graceful-fs).
- User-friendly by accepting [globs](https://github.com/sindresorhus/globby#globbing-patterns) and creating non-existant destination directories.
- Fast by using streams.
- Resilient by using [graceful-fs](https://github.com/isaacs/node-graceful-fs).
- User-friendly by accepting [globs](https://github.com/sindresorhus/globby#globbing-patterns) and creating non-existant destination directories.
- User-friendly error messages.

@@ -84,3 +84,3 @@

Usage
$ cpy <source> <destination> [--no-overwrite]
$ cpy <source> <destination> [--no-overwrite] [--parents] [--cwd <dir>]

@@ -90,2 +90,6 @@ Example

Options
--parents Preseve path structure
--cwd <dir> Working directory for source files
<source> can contain globs if quoted

@@ -92,0 +96,0 @@ ```

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