json-beautifier
v1.0.3
Published
JSON beautifier with same API as js-beautify
Downloads
558
Maintainers
Readme
json-beautifier
json-beautifier is a tool that can prettify json files. It have the same API as js-beautify. By default it will read stdin and print to stdout.
Installation
npm install -g json-beautifier
Usage
Usage: json-beautify [OPTIONS]
Mandatory arguments to long options are mandatory for short options too.
-f, --file=<file> Input file(s) (Pass '-' for stdin)
-r, --replace Write output in-place, replacing input
-o, --outfile=<file> Write output to file (default stdout)
-h, --help Show this help
-v, --version Show the version
-s, --indent-size=NUM Indentation size [4]
-c, --indent-char=CHAR Indentation character [" "]
-t, --indent-with-tabs Indent with tabs, overrides -s and -c'