1.7.0 • Published 2 years ago

@elastic/micro-jq v1.7.0

Weekly downloads
789
License
Apache-2.0
Repository
-
Last release
2 years ago

micro-jq

A small implementation of JQ.

What is it?

jq is a fantastic tool for wrangling JSON, but it's written in C and so cannot be used in a browser. This project implements a subset of the JQ filter language, and is intended for simple filtering jobs in JavaScript where the filter is supplied e.g. by a user.

How does it work?

It uses a parsed expression grammar (via Peggy) to transform JQ expressions into a series of "op codes", with each one representing a JQ filter operation. Each op code is executed with a context, which is initialised with the input object. As each op code executes, the context is updated.

Goals

  • Implement enough of the JQ syntax to be useful
  • Implement it the same as JQ

Non-goals

  • Complete implementation of JQ (but the level of completeness may increase over time).
1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.4.3

3 years ago

1.5.0

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago