Compares two files, shows how they differ.
> npm install -g compare-files
Let's say you have two json files:
{
"host": "hexlet.io",
"timeout": 50,
"proxy": "123.234.53.22"
}
{
"timeout": 20,
"verbose": true,
"host": "hexlet.io"
}
To find out the differences between those two files, run gendiff
in the terminal with paths to the files. For example:
> gendiff file1.json file2.json --format plain
Property 'timeout' was updated from '50' to '20'
Property 'proxy' was removed
Property 'verbose' was added with 'true'
- json,
- yaml,
- ini.
- plain text,
- json.