Skip to content

Bodrus/Difference-Generator-Files

Repository files navigation

Difference-Generator-Files

Simple cli-tool for checking difference between configuration files. Works with JSON, YML and INI files.

$ gendiff before.json after.json

{
    host: hexlet.io
  + timeout: 20
  - timeout: 50
  - proxy: 123.234.53.22
  + verbose: true
  - follow: false
}

Maintainability

Test Coverage

Build Status

Use:

install: sudo npm install -g determinant_differences_bodrus.

gendiff before.json after.json - comparing two json files.

gendiff before.yml after.yml - comparing two yaml files.

gendiff before.ini after.ini - comparing two ini files.

Flags:

--format - allows you to output result in a flat format:

$ gendiff --format plain before.json after.json

Property 'timeout' was updated. From '50' to '20'
Property 'proxy' was removed
Property 'common.setting4' was removed
Property 'common.setting5' was removed
Property 'common.setting2' was added with value: 200
Property 'common.setting6.ops' was added with value: 'vops'
Property 'common.sites' was added with value: 'hexlet.io'
Property 'group1.baz' was updated. From 'bars' to 'bas'
Property 'group3' was removed
Property 'verbose' was added with value: true
Property 'group2' was added with complex value

--json - allows you to output diff in the form json.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published