Package detail

jq-cli-wrapper

jamsyoung3.7kMIT1.6.1

A npm wrapper around the jq cli

cli-wrapper, jq, json

readme

JQ CLI Wrapper

This is a simple npm wrapper around jq so it can be pulled in as a node dependency and used for script commands in the package.json file without the requirement to be globally installed. While that was my original reason for creating this wrapper, you could install this globally as another easy way to get jq installed on your system.

2018 UPDATE! I rarely use this as a dependency and always install it globally now. Go figure!

This wrapper currently only supports the following jq binaries:

  • OS X 64-bit
  • Linux 32-bit
  • Linux 64-bit

More OS support will be added if needed. Please submit an issue requesting it or feel free to add it yourself and submit a pull request.

Usage as package dependency

Just include this as a dependency in your package.json. Once installed you can reference jq directly in the package.json and not need to worry about installing it globally. Here is a basic contrived example:

{
  "name": "example",
  "version": "0.1.0",
  "main": "app.js",
  "scripts": {
    "start": "node $(jq -r .main package.json)"
  },
  "dependencies": {
    "jq-cli-wrapper": "*"
  }
}

Usage as a global cli tool

$ npm install --global jq-cli-wrapper
$ jq --version
jq-1.5

NOTE: You may need to open a new Terminal window or tab for jq to be in your PATH after it is installed.

changelog

JQ CLI Wrapper Changelog

2019-05-31, Version 1.6.1

Notable changes

  • Installs jq-1.6
  • Fix for linux binary

Commits

  • [19cbc198bc] - Update to jq-1.6 / node LTS 10.16 (#17) (jamie young)
  • [00d417b275] - Fix linux binary (#14) (Adam Mcgrath) #14

2018-04-20, Version 1.0.2, @jamsyoung

Notable changes

  • Fixes process.arch install issue on linux

Commits

  • [76e7ac92ab] - process.arch is not a function error on linux (#12) (jamie young) #12

2018-04-19, Version 1.0.1, @jamsyoung

Notable changes

  • Fixes chmod install issue

Commits


2018-04-19, Version 1.0.0, @jamsyoung

Notable changes

  • Uses bin-wrapper to get the proper binary. No change in jq version. It's 1.5 btw.

Commits


2016-11-16, Version 0.4.0, @jamsyoung

Notable changes

  • Does not pin node engine anymore, updated to require 6.9.1+ (current LTS)

Known issues

See https://github.com/jamsyoung/jq-cli-wrapper/labels/defect for complete and current list of known issues.

Commits

  • [019bc3c047] - deps: update node engine (#5) (Jamie Young) #5
  • [4e99169d3f] - deps: update node version to most current LTS (james young)
  • [b0c44497ae] - deps: set node engine to be >=, not exact (James Young

2015-12-08, Version 0.3.0, @jamsyoung

Notable changes

  • Support for Linux 32-bit

Known issues

See https://github.com/jamsyoung/jq-cli-wrapper/labels/defect for complete and current list of known issues.

Commits

  • [d27aedab20] - linux: add support for linux 32-bit (James Young)

2015-12-07, Version 0.2.0, @jamsyoung

Notable changes

  • Support for Linux 64-bit

2015-12-07, Version 0.1.0, @jamsyoung

Notable changes

  • Initial release - only support for OS X 64-bit