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.3.1 to 3.4.0

7

cli.js

@@ -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

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