Gendiff is a CLI utility compares two configuration files and shows a difference.
Make sure you have Node.js (14.0.x.x or higher) and npm installed.
- Clone the project
git clone https://github.com/rmanzman/gendiff.git
- Install the project
cd gendiff
npm ci
- Install dependencies
npm link
Usage: gendiff [options] <filepath1> <filepath2>
Compares two configuration files and shows a difference.
Options:
-V, --version output the version number
-f, --format <type> output format (default: "stylish")
-h, --help display help for command
Input formats: .json, .yaml, .yml.
Output formats: stylish, plain, JSON.
For stylish output:
gendiff path/to/file1.json path/to/file2.json
or
gendiff -f stylish path/to/file1.json path/to/file2.json
For plain output:
gendiff -f plain path/to/file1.json path/to/file2.json
For JSON output:
gendiff -f json path/to/file1.json path/to/file2.json