This cli utility compares two configuration files and shows their difference.
It takes three types of formats: ini, json, yaml (yml). The comparison output can be viewed in three types: default, json, plain. Make install.
npm install -g gendiff-khudaibergenov-r
gendiff -help
Example.
gendiff -f plain file1.json file2.json
Property 'timeout' was updated. From '50' to '20'
Property 'proxy' was removed
Property 'verbose' was added with value: true
gendiff file1.json file2.json
{
host: hexlet.io
- timeout: 50
+ timeout: 20
- proxy: 123.234.53.22
+ verbose: true
}