New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

jq-cli-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jq-cli-wrapper

A npm wrapper around the jq cli

latest
Source
npmnpm
Version
1.6.1
Version published
Maintainers
1
Created
Source

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.

Keywords

cli-wrapper

FAQs

Package last updated on 31 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts