0.0.4 • Published 4 months ago

jq-wasm v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

jq-wasm

jq-wasm compiles jq into WebAssembly using Emscripten and packages it into a NPM package for consumsion.

Usage

const jq = require("jq-wasm")

jq.json({ foo: "bar" }, ".foo")
    .then(result => console.log(result))
    .catch(e => console.error(e.message))

jq.raw({ foo: "bar" }, ".", ["-c"])
    .then(result => console.log(result))
    .catch(e => console.error(e.message))

jq.json takes a JSON object and a filter. jq.raw takes a JSON object, a filter and the optional array of commandline flags.

0.0.4

4 months ago

0.0.3

6 months ago

0.0.2

9 months ago

0.0.1

9 months ago