/create-rules-json

Simple CLI tool for writing formatted JSON file to disc

Primary LanguageJavaScript

create-rules-json

CLI tool for parse JSON file (based on predefined rules) and write a formatted new file to disc.

Prerequisites

Download and install Node.js and npm. Follow the docs on Node.js site.

Tests if node.js and npm were installed properly:

npm --version
node --version

Installation

Use the package manager npm to install the package.

npm install -g @waserman/create-rules-json

CLI options

-s, --source    String    path to the source JSON file.
-t, --target    String    the name of the new generated file.
-r, --replace   Boolean   weather to delete the source file, or not. 

Usage

Open your terminal and run

create-rules-json

and than just follow the instructions.

or:

create-rules-json -s /path/to/source/file.json -t new_file -r

License

MIT