json-extract-path
v1.0.7
Published
CLI for extracting a value from a JSON file based on a JSONPath input
Readme
CLI Typescript Commander Starter
CLI for extracting a value from a JSON file based on a JSONPath input
npx json-extract-path --file ./example.json --jsonpath "$.store.book[*].author"How to use
Install globally via
npm install -g json-extract-pathor directly use via
npx json-extract-pathYou can also download native binaries under the Releases Tab and use them if you don't want to install NodeJS.
Usage:
Usage: npx json-extract-path [options]
Options:
-V, --version output the version number
-f, --file path to the JSON file
-j, --jsonpath <path> JsonPath value
-d, --delemitter <del> delemitter character, in case more than one result is returned (default: ";")
-h, --help display help for commandHow to develop
yarnto install dependenciesyarn startto run the CLI script for debuggingyarn testto run testsyarn publishto publish a new version to NPM. Make sure to bump the version!yarn prettier:checkto verify that your code is prettyyarn prettier:writeto make your code pretty
