refactor-template

CLI tool to generate code from template.

Refactor-Template CLI




CLI Tool to refactor a file tree structure with passed arguments.

The Goal of Refactor-Template CLI

  • boost productivity
  • reduce bugs
  • save time

Installing the CLI

npm install -g refactor-template

Example

The following example will clone the users folder as products and replace all occurance and all veriations of the text 'users' in folder, file, and file content.

refactor-template <source> <target> <placeholder(optional)> <new-value(optional)>
refactor-template copy src/user  sr/product user product

Commands

To see available commands , run the help command

refactor-template --help