rpls
v1.0.16
Published
copying templates with variable substitution and replacement
Downloads
12
Maintainers
Readme
RPLS
Utility for copying templates with variable substitution and replacement
Install
npm i -D rpls
Post install
- After install, add command to npm scripts:
# package.json
{
...
"scripts": {
"rpls": "./node_modules/rpls/bin/cli.js"
},
...
}
Options
Options:
--tpl Template directory [string] [required]
--outDir Out directory [string]
--rw Rewrite string. Example: <fromString>:<toString>
[array] [required]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Use Example
npm run rpls -- --tpl ./my-template --rw fromString1:toString1 --rw fromString2:toString2