2 releases

0.1.2 Dec 11, 2019
0.1.1 Dec 11, 2019

#315 in Value formatting

26 downloads per month

MIT license

7KB
115 lines

prettyjson

prettyjson - command line JSON format tool.

Install

cargo install --git https://github.com/jht5945/prettyjson

Usage

$ prettyjson --help
Usage:
  prettyjson [OPTIONS] [FILE]

prettyjson - command line JSON pretty tool.

Positional arguments:
  FILE                  FILE

Optional arguments:
  -h,--help             Show this help message and exit
  -w,--tab-width TAB_WIDTH
                        Tab width, default 4
  -v,--version          Print version
$ echo '{"k": "value"}' | prettyjson
{
    "k": "value"
}

Dependencies

~0.6–1MB
~16K SLoC