Skip to content
Copy files
JavaScript
Branch: master
Clone or download
Latest commit af00c3b Dec 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create funding.yml May 28, 2019
.editorconfig Bump `cpy` and require Node.js 6 May 25, 2018
.gitattributes Bump `cpy` and require Node.js 6 May 25, 2018
.gitignore Bump `cpy` and require Node.js 6 May 25, 2018
.npmrc Bump `cpy` and require Node.js 6 May 25, 2018
.travis.yml Require Node.js 8 May 28, 2019
cli.js Require Node.js 8 May 28, 2019
license Bump `cpy` and require Node.js 6 May 25, 2018
package.json 3.0.0 Dec 6, 2019
readme.md Update dependencies Dec 6, 2019
test.js Update dependencies Dec 6, 2019

readme.md

cpy-cli Build Status

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
    --parents            Preserve path structure
    --cwd=<dir>          Working directory for files
    --rename=<filename>  Rename all <source> filenames to <filename>

  <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 .html files inside src folder into dist and preserve path structure
    $ cpy '**/*.html' '../dist/' --cwd=src --parents

Related

  • cpy - API for this module
You can’t perform that action at this time.