@spendbch/bigjq

0.0.8 • Public • Published

bigjq

A node-jq plugin to enable big arguments

why?

When using the node-jq library it fails if the input is too large.

It would be ideal if the original node-jq repository implemented this feature but it doesn't look like it's going to happen any time soon.

how?

jq has an option to accept stdin as input, and this doesn't have a limit.

This library makes use of that feature and creates an abstraction on top of node-jq.

installation

npm install --save bigjq

You don't need to install node-jq separately because it's automatically installed as a dependency when you install this library.

usage

const jq = require('bigjq')
jq.run(filter, data)
.then(function(result) {
  console.log("result = ", result)
})
.catch(function(e) {
  console.log("error = ", e)
})

Readme

Keywords

none

Package Sidebar

Install

npm i @spendbch/bigjq

Weekly Downloads

0

Version

0.0.8

License

ISC

Unpacked Size

1.9 kB

Total Files

4

Last publish

Collaborators

  • spendbch