Skip to content

Copy files to a destination path computed from a regexp.

License

Notifications You must be signed in to change notification settings

yanndinendal/ls-to-cp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ls-to-cp

Copy files to a destination path computed from a regexp.

Warning: This library is used for an internal project and is unstable and not tested by lack of time. Use as your own risk.

## Installation

npm i -g ls-to-cp

How to use

Examples:

$ find node_modules -type d -regextype posix-extended -regex '.*company\..*dist/assets' | ls-to-cp -p '^node_modules/([^/]+)/dist' -d 'dist/assets/$1'
✔ node_modules/company.react-card/dist/assets -> dist/assets/company.react-card
✔ node_modules/company.react-button-nav/dist/assets -> dist/assets/company.react-button-nav
✔ node_modules/company.react-svg-icon/dist/assets -> dist/assets/company.react-svg-icon
✔ node_modules/company.react-spinner/dist/assets -> dist/assets/company.react-spinner
✔ node_modules/company.react-breadcrumbs/dist/assets -> dist/assets/company.react-breadcrumbs

About

Copy files to a destination path computed from a regexp.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%