sindresorhus / cpy-cli

Copy files
MIT License
345 stars 33 forks source link

The `--rename` flag supports string templates. #40

Closed jaywcjlove closed 2 years ago

jaywcjlove commented 2 years ago
$ cpy 'src/*.png' dist --rename 'hi-{{basename}}'

output

hi-apple.png

This is an enhancement feature

@sindresorhus

sindresorhus commented 2 years ago

You need to add docs too.

jaywcjlove commented 2 years ago

@sindresorhus I have added documentation and examples.