Skip to content

Latest commit

 

History

History

naive_jq

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Naive jq

A naive implementation of jq in Node.js, only for quick testing.

Usage

node jq.js [options] [input]

Options

  • -p, --path <path>: Specify the JSON path to extract
  • -h, --help: Display this help message and exit

Positional Arguments

  • input: JSON data. If input is not provided, the script will read from standard input.

Examples

Read from command-line arguments

node jq.js -p .data '{"data": "hello"}'

Read from standard input

cat example.json | node jq.js -p .data

Display help message

node jq.js --help