Compares two configuration files and shows a difference
Supported config formats: .json
, .yml
, .ini
Output formats: plain text
, tree
, json
npm install -g gendiff-lozovsky
gendiff [options] <firstConfig> <secondConfig>
-V, --version output the version number
-f, --format [type] output format
-h, --help output usage information
You can use it in your code
import gendiff from 'gendiff-lozovsky';
const diff = gendiff('./firstConfig.yml', './firstConfig.yml', 'json');