json-beautifier

1.0.3 • Public • Published

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'

Package Sidebar

Install

npm i json-beautifier

Weekly Downloads

102

Version

1.0.3

License

MIT

Last publish

Collaborators

  • dev-null