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.
This wrapper currently only supports the following jq binaries:
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.
Just include this as a dependency in your package.json. Once installed you can
jq directly in the package.json and not need to worry about
installing it globally. Here is a basic contrived example:
$ npm install --global jq-cli-wrapper$ jq --versionjq-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.