json-key-diff
v2.0.2
Published
compare multiple json-files with each other
Downloads
1
Readme
json-key-diff ·
compare multiple json files with each other. It prints out the differences to console or to a file.
installation
npm install --global json-key-diff
usage
Usage: json-key-diff [options] [command] <file1> <file2> ...
Commands:
help Display help
version Display version
Options:
-h, --help Output usage information
-o, --o Output-Filepath
-v, --version Output the version number
example
test1.json
:
{
"random1": "In both",
"random4": "In both",
"random7": "Just in test 1",
"random9": "In both"
}
test2.json
:
{
"random1": "In both",
"random4": "In both",
"random6": "Just in test 2",
"random14": "Just in test 2",
"random9": "In both"
}
json-key-diff -o diff.json test1.json test2.json
:
{
"test1.json": {
"random6": "Just in test 2",
"random14": "Just in test 2"
},
"test2.json": {
"random7": "Just in test 1"
}
}