rpls

1.0.16 • Public • Published

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

Package Sidebar

Install

npm i rpls

Weekly Downloads

1

Version

1.0.16

License

MIT

Unpacked Size

4.07 kB

Total Files

3

Last publish

Collaborators

  • mikestotik