open-index/open-npm huggingface dataset:
npm package: @jsjson/jsoncat
Description: JsonCat utility - Prints out json files to stdout.
Author: Harry Y
Latest version: 0.6.3

# JsonCat
> JSON file concatenator

`jsoncat` concatenates multiple JSON files into a single array and prints out the output to the stdout.
When a single JSON file is given, it does not add a top-level array.
When no JSON file is given, it reads JSON from the stdin.


## 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/jsoncat
```

## Running the Script

The NPM package installs an executable `jsoncat` in your PATH.
Run the script as follows:

```bash
jsoncat -i4 json-file1 json-file2 ...
```

The `-i` or `--indent` argument sets the indentation level when printing out the JSON files. 

Note that each json file should be a valid JSON.
`jsoncat` concatenates the input json files, if more than one file is given, into a single top-level array.
The merge flag, `-m` or `--merges`, merges the JSON files into the top-level array, if a given json file is a JSON array.

When no json file is given, it reads from the stdin (until the EOF signal).
The "-" symbol can also be used for stdin. For example, the following command

```bash
jsoncat -i4 json-file1 - json-file2
```

concatenates json-file1, stdin, and json-file2.


For complete usage info, including examples, try:

```bash
jsoncat -h
```


## License

MIT © [Harry Y](https://gitlab.com/realharry)
npm package: @jsjson/jsoncmp
Description: JsonCmp utility - Compare two json files.
Author: Harry Y
Latest version: 0.5.0

# 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)
npm package: @jsjson/jsonhead
Description: JsonHead utility - Prints out first part of json files to stdout.
Author: Harry Y
Latest version: 0.5.0

# JsonHead
> Output the first part of JSON files

`jsonhead` reads multiple JSON files and prints out the first 4 nodes of each JSON 
to the stdout, with the file name headers.
When a single JSON file is given, the file name header is never printed.
When no JSON file is given, it reads JSON from the stdin.


## 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/jsonhead
```

## Running the Script

The NPM package installs an executable `jsonhead` in your PATH.
Run the script as follows:

```bash
jsonhead -n2 json-file1 json-file2 ...
```

`jsonhead` print the first 4 nodes/elements of each JSONFILE to standard output
with the file name headers.
The `-n` or `--nodes` argument sets the number of nodes or elements of JSON to print out instead of 4. 
The flag, `-q` or `--quiet`, prevents the file name headers from being printed.

When no json file is given, it reads from the stdin (until the EOF signal).


For complete usage info, including examples, try:

```bash
jsonhead -h
```


## License

MIT © [Harry Y](https://gitlab.com/realharry)