trentm/json — pull request #33 by bahamas10 (2012-06-28 23:47:16+00:00)
Title: Adding `prettyjson` module support to output formats

* Run with `-o pretty` or `-p` to use
* Environmental variables to override colors

Example, i'd recommend trying this yourself to get the full colorful effect

```
$ export JSON_PP_KEY_COLOR=cyan
$ export JSON_PP_DASH_COLOR=black
$ ./bin/json -p < package.json
name: jsontool
description: a 'json' command for massaging JSON on the command line
version: 3.2.1
repository:
type: git
url: git://github.com/trentm/json.git
author: Trent Mick (http://trentm.com)
bin:
json: ./lib/jsontool.js
json3: ./lib/jsontool.js
main: ./lib/jsontool.js
man: ./man/man1/json.1
scripts:
test: make test
engines:
- node >=0.4.0
keywords:
- json
- jsontool
- filter
- command
- shell
dependencies:
prettyjson: = 0.5.0
devDependencies:
uglify-js: 1.1.x
nodeunit: 0.7.x
ansidiff: 1.0
```