# @jsjson/jsoncmp

> JsonCmp utility - Compare two json files.

Latest version **0.5.0** (published 2017-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jsjson/jsoncmp
pnpm add @jsjson/jsoncmp
yarn add @jsjson/jsoncmp
bun add @jsjson/jsoncmp
```

Provides the command `jsoncmp`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2017-12-21 |
| First published | 2017-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Harry Y |
| Maintainers | realharry |
| Keywords | json, cat |

## Links

- npm: https://www.npmjs.com/package/@jsjson/jsoncmp
- Repository: https://gitlab.com/jsjson/tools
- Homepage: https://gitlab.com/jsjson/tools#README
- Issues: https://gitlab.com/jsjson/tools/issues
- npm.io page: https://npm.io/package/@jsjson/jsoncmp

## Dependencies (1)

- [minimist](https://npm.io/package/minimist.md) ^1.2.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.5.0 (latest) — 2017-12-21

## README

# 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](https://nodejs.org/) 
(along with [npm](https://www.npmjs.com/))
if you haven't already done so.

```bash
npm install -g @jsjson/jsoncmp
```

## Running the Script

The NPM package installs an executable `jsoncmp` in your PATH.
Run the script as follows:

```bash
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:

```bash
jsoncmp -h
```


## License

MIT © [Harry Y](https://gitlab.com/realharry)

---
_Source: https://npm.io/package/@jsjson/jsoncmp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
