Skip to content

MikhailGA/project-lvl2-s345

Repository files navigation

GenDiff

Maintainability Build Status

Asciinema

ABOUT gendiff

Compares two configuration files and shows a difference.

INSTALLATION

$ npm install gengiffs345

USAGE

$ gendiff [options] <firstConfig> <secondConfig>

Support options

-v, --version        output the version number
-f, --format [type]  output format (default: diff)
-h, --help           output usage information

Support configuration file

*.json
*.yaml
*.ini

Support output format type

plain
json
diff(default)

EXAMPLE

$ npm install -g gendiffs345
$ gendiff -f plain before.json after.json

Property 'common.setting2' was removed
Property 'common.setting3' was updated. From 'true' to '[complex value]'
Property 'common.setting6.ops' was added with value: vops
Property 'common.follow' was added with value: false
Property 'common.setting4' was added with value: blah blah
Property 'common.setting5' was added with value: [complex value]
Property 'group1.baz' was updated. From 'bas' to 'bars'
Property 'group1.nest' was updated. From '[complex value]' to 'str'
Property 'group2' was removed
Property 'group3' was added with value: [complex value]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published