Package Exports
- node-jq
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-jq) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-jq 
jq
is a lightweight and flexible command-line JSON processor.
Work in progress...
Install
Need to have jq
installed.
npm install atom-jq --save
Usage
import { run } from 'node-jq'
// or
const run = require('node-jq').run
const filter = '. | map(select(.foo > 10))'
const jsonPath = path.join(__dirname, 'path', 'to', 'json')
run(filter, jsonPath)
.then((output) => {
// something with the output
})
.catch((err) => {
// something with the error
})
License
MIT