gendifff
v1.2.3
Published
Compares two configuration files and shows differences. Avaliable: JSON, YAML, INI. Can be nested.
Downloads
2
Readme
Difference generator
Difference generator is a CLI utility compares two configuration files.
Capabillities:
- use multiple formats
- generate reports in different formats: text, pretty, json
Example:
$ gendiff --format plain first-config.ini second-config.ini
Setting "common.setting2" deleted.
Setting "common.setting4" added with value "blah blah".
Setting "group1.baz" changed from "bas" to "bars".
Section "group2" deleted.
Installation
$ npm install -g gendifff
Compare JSON files
$ gendiff config1.json config2.json
Compare YAML/YML files
$ gendiff config1.yaml config2.yaml
Compare INI files
$ gendiff config1.ini config2.ini
Compare nested files
$ gendiff configTree1 configTree2
Compare files in plain format
$ gendiff --format plain config1 config2
Compare files in json format
$ gendiff --format json config1 config2