jq-filter

1.0.0 • Public • Published

JSON Lines filter

Filters JSON Lines input using JavaScript.

The only argument to this tool is a predicate where it indicates parsed JSON line. If the predicate returns true the line is printed as is otherwise it is silently discarded.

Example:

$ cat file.jsonl
{"size":4}
{"size":5}
{"size":6}

$ cat file.jsonl | npx jq-filter 'it.size > 5'
{"size":6}

Readme

Keywords

Package Sidebar

Install

npm i jq-filter

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

15.4 kB

Total Files

5

Last publish

Collaborators

  • wiktor-k