This project is a console application that allows you to merge two files for changes. Supported file types are Json and Yaml. The format of the result of the changes is displayed on the screen and is available in the Json, Plain Text and Classic Cascading formats.
-
Installation
$git clone https://github.com/BellatorJS/frontend-project-lvl2
$make install
Check of launch
$gendiff -h
file1.json
{ "common": { "setting1": "Value 1", "setting2": 200, "setting3": true, "setting6": { "key": "value", "doge": { "wow": "" } } }, "group1": { "baz": "bas", "foo": "bar", "nest": { "key": "value" } }, "group2": { "abc": 12345, "deep": { "id": 45 } } }
file2.json
{ "common": { "follow": false, "setting1": "Value 1", "setting3": null, "setting4": "blah blah", "setting5": { "key5": "value5" }, "setting6": { "key": "value", "ops": "vops", "doge": { "wow": "so much" } } }, "group1": { "foo": "bar", "baz": "bars", "nest": "str" }, "group3": { "deep": { "id": { "number": 45 } }, "fee": 100500 } }
$gendiff file1.json file2.json
$gendiff -f plain file1.json file2.json
$gendiff -f json file1.json file2.json