5.0.0 • Published 2 years ago

cpy-cli v5.0.0

Weekly downloads
149,293
License
MIT
Repository
github
Last release
2 years ago

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>. Supports string templates.
    --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

    Copy all .png files in the src folder to dist and prefix the image filenames
    $ cpy 'src/*.png' dist --cwd=src --rename=hi-{{basename}}

Related

  • cpy - API for this module
react-native-quill-wrapper@dry-stack/devtoolsreact-fiber-monitor@ymatuhin/buildngx-lib-starter@infinitebrahmanuniverse/nolb-cp@everything-registry/sub-chunk-1395tcd-lesson-subscriptionsync-ampl-contract-sdkweb-test-runner-performancewebcode-rowy-backend-tmpx-code-inspectxen-address-sdkxendoge-contract-sdkxenbox2-contract-sdksuonotextarea-selection-boundsvoluptatesporrovmstate@magnolia/cli-create-helpervinze-react-adminturbine-validationtommy-coretokenpass-server@austonpramodh/nps-utils@arkecosystem/core-database-postgres@autorest/az@banksean/patchcab-ui@blockpool-io/core-snapshots@blockpool-io/core-database-postgres@bzxnetwork/contracts@byu-oit/aim-nuxt-common@chainfusion/chainfusion-contracts@chainfusion/erc-20-bridge-contracts@abledevs/nps-utils@deathstar/sputnik-ui-angularyoutube-vue3unichat-contract-sdk@fristys/styled-props-simplified@gobstones/gobstones-scripts@gowravshekar/nps-utils@loftysoul/soul@logicflow-ai/astra-wingman@lerda/server@lerna-ui/server@luodexun/database-mysql@luodexun/database-postgres@m7kra/react-utils@nejcm/react-boilerplate@evobuild/cli@mlcc/core-database-postgres@mlcc/core-snapshots@mitm/chuck@klarheit/cli@qae/core-database-postgres@qae/core-snapshots@public-ui/sample-react@saleae/page-services-library@samantha-uk/zigzag-panel@phantomcores/core-database-postgres@phantomcores/core-snapshots@obsidize/devkit@smolpack/react-bootstrap-extensionsmy-first-jss-appmwa-enginen2o-framework-bftnps-utilsnrcs-design-system-updatedrbc-compliance-apirc_ghostrehy-clir3f-packrewind-componentssindresorhus.jsreactfibermonitorsim-node-libreact-typescript-boilplategn-matchmaker-clientgsw-nodeherm-jsherm-js-documentherm-js-networkhardhat-foundry-sdkleaderboard-femdprog@tsdiapi/cli@tommywalkie/excalidraw-cli@swipechain/core-database-postgres@toucansam-bpl/core-database-postgres@toucansam-bpl/core-snapshots@xqr/core-snapshots@xqr/core-database-postgres@xframes/node@znemz/js-common-cpy-clichain-persion-contract-sdkcascada-tmplcodegem-machine-iconcreate-leanupcreate-apollo-couchbase-servercreate-node-server-ts
5.0.0

2 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

6 years ago

2.0.0

7 years ago

1.0.1

9 years ago

1.0.0

9 years ago