@aux4/json

0.0.2 • Public • Published

@aux4/json

JSON cli tools

Install

npm install -g @aux4/json

Usage

Merge

Merge multiple json files into one.

$ aux4-json merge file1.json file2.json ... > merged.json

Group

Group json file by an id (one or multiple fields). Combine the other fields into an array.

$ cat file.json | aux4-json group --id field1,field2 > grouped.json

Index

Indexes json file by an id (one or multiple fields).

$ cat file.json | aux4-json index --id field1,field2 > indexed.json

Collect

Collect multiple json from stream into one array.

$ process that streams json | aux4-json collect > collected.json

Get

Get value from json file by path. Don't forget to escape the $.

$ cat file.json | aux4-json get \$.path.to.value

Inline

Inline json file into a single line.

$ cat file.json | aux4-json inline > inlined.json

Pretty

Pretty print json file.

$ cat file.json | aux4-json pretty > pretty.json

Readme

Keywords

Package Sidebar

Install

npm i @aux4/json

Weekly Downloads

1

Version

0.0.2

License

Apache-2.0

Unpacked Size

23.5 kB

Total Files

20

Last publish

Collaborators

  • aux4-dev