/json-parse-cli

Primary LanguageJavaScriptMIT LicenseMIT

json-parse-cli

NPM-downloads LICENSE semantic-release

Parse JSON string in your CLI

Features

Install

$ npm install -g json-parse-cli

Usage

Just type json-parse -h for detail usage.

$ json-parse --help

  Usage:
    $ json-parse [options] <path>

  Options:
    -h --help     Show this screen.
    -v --version  Show version.
    -i --indent   Indent length (only work with --format=json).
    -f --format   Format, object|json|json5 [default: object].

  Examples:
    $ json-parse foo.log
    $ json-parse --format=json foo.log
    $ json-parse --format=json --indent=4 foo.log
    $ cat foo.log | json-parse -f json -i 4
    $ echo '{"name": "akccakcctw"}' | json-parse

Issues

https://github.com/akccakcctw/json-parse-cli/issues

License

MIT © Rex Tsou