Skip to content

jsware/jsonpath-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonpath-cli

Command-Line interface for the jsonpath-plus library.

The jpp command enables running the jsonpath-plus library against files from the command line. JSONPath searches return a JSON array which jpp outputs. The --pretty option pretty-prints the output. Additional command line options can be found below.

See the documentation for examples, JSONPath expression syntax and additional details.

Installation

npm install -g @jsware/jsonpath-cli

Usage

Usage: jpp [options] [JSONPath Expression] [JSON Input File]

Options:
  -V, --version                display version
  -i, --input <file>           input JSON file (default: stdin)
  -e, --jsonpath <expression>  matching expression
  -o, --output <file>          output file for matches (default: stdout)
  -p, --pretty                 pretty print matches (default: false)
  -s, --separate               output each match separately (default: false)
  -r, --prefix [prefix]        prefix when using --separate (default: false)
  -h, --help                   display help for command

About

Command-line interface for the jsonpath-plus library.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published