Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34
sindresorhus/cpy-cli
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Copy files
- Fast by using streams.
- Resilient by usinggraceful-fs.
- User-friendly by acceptingglobs and creating non-existent destination directories.
- User-friendly error messages.
npm install --global cpy-cli
$ 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}}
- cpy - API for this module
About
Copy files
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors12
Uh oh!
There was an error while loading.Please reload this page.