Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Copy files

License

NotificationsYou must be signed in to change notification settings

sindresorhus/cpy-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copy files

Why

  • Fast by using streams.
  • Resilient by usinggraceful-fs.
  • User-friendly by acceptingglobs and creating non-existent 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

[8]ページ先頭

©2009-2025 Movatter.jp