2.0.2 • Published 5 years ago

json-key-diff v2.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

json-key-diff · License: MIT npm version

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"
    }
}
2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago