libjq
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

node-libjq

jq C API binding for Node.js.

Installation

yarn add libjq
pnpm add libjq
npm install --save libjq

Example

import { run } from 'libjq';

console.log(run('.foo', { foo: 'abc' }));
// abc

Why yet another binding?

node-jq spawns new jq process for every function call, which is not optimal in performance and sometimes comes with an unstable result parsing.

This packages uses jq's C API directly, so does not suffer from such problems.

Readme

Keywords

none

Package Sidebar

Install

npm i libjq

Weekly Downloads

3

Version

0.1.0

License

none

Unpacked Size

15.3 kB

Total Files

13

Last publish

Collaborators

  • g6123