5.0.0 • Published 10 months ago

cpy-cli v5.0.0

Weekly downloads
149,293
License
MIT
Repository
github
Last release
10 months 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-1395@obsidize/devkitweb-test-runner-performance@phantomcores/core-snapshots@phantomcores/core-database-postgresdoloremad@samantha-uk/zigzag-panelwebcode-rowy-backend-tmpvinze-react-adminvmstatevoluptatesporronrcs-design-system-updatednps-utils@public-ui/sample-react@smolpack/react-bootstrap-extensionsx-code-inspectxenbox2-contract-sdkxendoge-contract-sdkdocsify-darklight-theme@saleae/page-services-libraryyoutube-vue3@swipechain/core-database-postgresmy-first-jss-app@qae/core-snapshots@qae/core-database-postgreshardhat-foundry-sdkgsw-nodeexpress-routes-manager-v1herm-jsherm-js-documentherm-js-networkleaderboard-femdprogmwa-enginetokenpass-servertommy-coren2o-framework-bftturbine-validationunichat-contract-sdk@arkecosystem/core-database-postgres@autorest/azreactfibermonitor@byu-oit/aim-nuxt-common@bzxnetwork/contracts@austonpramodh/nps-utils@banksean/patchcab-ui@deathstar/sputnik-ui-angularreact-typescript-boilplate@znemz/js-common-cpy-cli@abledevs/nps-utils@tommywalkie/excalidraw-cli@tomei/generalrewind-componentsautorest-az@chainfusion/chainfusion-contracts@chainfusion/erc-20-bridge-contracts@xqr/core-database-postgres@xqr/core-snapshotsr3f-pack@toucansam-bpl/core-snapshots@toucansam-bpl/core-database-postgresrc_ghostrbc-compliance-api@fristys/styled-props-simplifiedsuono@blockpool-io/core-database-postgres@blockpool-io/core-snapshotscreate-apollo-couchbase-servercreate-leanupsim-node-lib@m7kra/react-utils@magnolia/cli-content-helper@magnolia/cli-create-helpercreate-node-server-tsrehy-clibilling-ts-demobatch-address-contract-sdk@gowravshekar/nps-utils@gobstones/gobstones-scriptsbuit-templates-tooling@evobuild/clisindresorhus.jscodegem-machine-icon@luodexun/database-mysql@luodexun/database-postgrestcd-lesson-subscription@klarheit/clisync-ampl-contract-sdk@mitm/chuck@mlcc/core-database-postgres@mlcc/core-snapshots@lerna-ui/server@lerda/server@loftysoul/soul
5.0.0

10 months ago

4.2.0

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.0.0

6 years ago

1.0.1

8 years ago

1.0.0

8 years ago