0.5.0 • Published 6 years ago

@jsjson/jsoncmp v0.5.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 years ago

JsonCmp

Compare two JSON files

jsoncmp reads two JSON files and compares them. Exit status is 0 if the files are the same, 1 if different, 2 if trouble.

Installation

First, install node.js (along with npm) if you haven't already done so.

npm install -g @jsjson/jsoncmp

Running the Script

The NPM package installs an executable jsoncmp in your PATH. Run the script as follows:

jsoncmp json-file1 json-file2

jsoncmp returns 0 if the two JSON files are equivalent (modulo formatting). It returns 1 otherwise. The return code of 2 indicates an error.

If a file is '-' or missing, read standard input.

For complete usage info, including examples, try:

jsoncmp -h

License

MIT © Harry Y

0.5.0

6 years ago