json-prettify

A commandline utility to pretty-print JSON files

npm install json-prettify
2 downloads in the last week
5 downloads in the last month

Pretty-Print JSON

The opposite of json-minify; For all the times you want to add readable whitespace.

{"foo":"bar"}

becomes

{
    "foo": "bar"
}

Usage

json-prettify /path/to/data.json

curl -s http://foobar3000.com/echo/echo.json | json-prettify

wget -qO- http://foobar3000.com/echo/echo.json | json-prettify

Installation

npm install -g json-prettify
npm loves you