2.0.3 • Published 3 years ago

json-processing v2.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

JP: JSON Processing Tool

Build Status via Travis CI NPM version Dependency Status via David DM

JP combines both yajson-stream and RxJS to provide a powerful command line tool for filtering and transforming json streams.

Example

Take the following ndjson as an example:

{ "num": 1 }
{ "num": 1 }
{ "num": 1 }

Then select all num and sum:

$ npm install -g json-processing
$ cat test.json | jp -l 'select(".num") |> reduce((a, b) => a + b, 0)' -m json
3

The -l parameter defines the filtering and transformation sequence. It must start with a call to select(path: string), which takes a yajson-stream path as parameter. The return is an Observable from RxJS.

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

LICENSE

Code and documentation released under The MIT License (MIT).

2.0.3

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.5-beta2

5 years ago

1.2.5-beta1

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1-beta4

6 years ago

1.2.1-beta3

6 years ago

1.2.1-beta2

6 years ago

1.2.1-beta1

6 years ago

1.2.0

6 years ago

1.2.0-beta1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-beta5

6 years ago

1.0.0-beta4

6 years ago

1.0.0-beta3

6 years ago

1.0.0-beta2

6 years ago

1.0.0-beta1

6 years ago

1.0.0-alpha8

6 years ago

1.0.0-alpha7

6 years ago

1.0.0-alpha6

6 years ago

1.0.0-alpha5

6 years ago

1.0.0-alpha4

6 years ago

1.0.0-alpha3

6 years ago

1.0.0-alpha2

6 years ago

1.0.0-alpha1

6 years ago

0.0.2

8 years ago

0.0.1

8 years ago