Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smnbbrv/copyreplaste
A cli tool thay makes repeatative copy-paste tasks easier
https://github.com/smnbbrv/copyreplaste
Last synced: 24 days ago
JSON representation
A cli tool thay makes repeatative copy-paste tasks easier
- Host: GitHub
- URL: https://github.com/smnbbrv/copyreplaste
- Owner: smnbbrv
- Created: 2019-07-17T09:54:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T09:48:52.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T09:28:59.546Z (about 2 months ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# copyreplaste
A cli tool thay makes repeatative copy-paste tasks easier.
Also exists as [VS Code extension](https://marketplace.visualstudio.com/items?itemName=smnbbrv.vscode-copyreplaste) ([github project](https://github.com/smnbbrv/vscode-copyreplaste)).
## Installation
Ensure you have node.js >= v10.
```sh
npm i -g copyreplaste
```## How it works
It copies a given directory, its subdirectories and files and performs replacement across all contents **and** file / directory names.
```sh
copyreplaste --from test/test-name --to test --replace names,name --with bunnies,bunny --force
```The replacements are massive. All the values are transformed to the
- dasherized case
- camelized case
- classified case
- underscored case
- capitalized caseand then replacing the matching values.
## Arguments
```sh
copyreplaste -h
Usage: copyreplaste [options]Options:
-V, --version output the version number
--from The directory to copy
--to The parent directory that will contain the copied one
--replace The comma-separated list of words to replace
--with One-by one comma-separated list of replacements for "replace"
--force Overwrite existing target folder (if present)
-h, --help output usage information
```## License
MIT