jqe

Like JQ, but you use javascript Expressions.

Usage no npm install needed!

<script type="module">
  import jqe from 'https://cdn.skypack.dev/jqe';
</script>

README

JQE

Like JQ, but you use javascript Expressions.

  1. Stdin is parsed as JSON and passed into your expression as the variable data.
  2. Your expression is evaluated and written to stdout as JSON.

Example

$ cat mydata.json | jqe 'data.rows.filter(r => r.statusCode === 200).map(r => r.responseTime)'
[
  ...JSON...
]