cpy-cli
Copy files
Last updated 3 months ago .
· Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cpy-cli 
SYNC missed versions from official npm registry.

cpy-cli

Copy files

Why

  • Fast by using streams.
  • Resilient by using graceful-fs.
  • User-friendly by accepting globs and creating non-existant destination directories.
  • User-friendly error messages.

Install

npm install --global cpy-cli

Usage

$ cpy --help

  Usage
    $ cpy <source …> <destination>

  Options
    --no-overwrite       Don't overwrite the destination
    --cwd=<dir>          Working directory for files
    --rename=<filename>  Rename all <source> filenames to <filename>
    --dot                Allow patterns to match entries that begin with a period (.)
    --flat               Flatten directory structure. All copied files will be put in the same directory.
    --concurrency        Number of files being copied concurrently

  <source> can contain globs if quoted

  Examples
    Copy all .png files in src folder into dist except src/goat.png
    $ cpy 'src/*.png' '!src/goat.png' dist

    Copy all files inside src folder into dist and preserve path structure
    $ cpy . '../dist/' --cwd=src

Related

  • cpy - API for this module

Current Tags

  • 4.1.0                                ...           latest (3 months ago)

8 Versions

  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 4.0.0                                ...           3 months ago
  • 4.1.0                                ...           3 months ago
Maintainers (1)
Dependencies (2)
Dev Dependencies (5)

Copyright © npmmirror.com | 浙ICP备15033595号-63 |