Skip to content

Commit

Permalink
Update Readme file with info about env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeca committed Jun 29, 2012
1 parent ae5a471 commit dbcda15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -40,6 +40,16 @@ and they'll be automatically displayed in a clearer way:
If you install the package globally (with `npm install -g prettyjson`), the CLI will be installed automatically in your PATH
thanks to npm.

### Customizing colors via command line

Now it's possible to customize the colors of the output via environment variables, thanks to @bahamas10:

```bash
$ PRETTYJSON_KEYS=red PRETTYJSON_DASH=blue bin/prettyjson package.json
```

The available options are `PRETTYJSON_KEYS`, `PRETTYJSON_DASH` and `PRETTYJSON_INDENT`.

## Using it (from Node.js)

It's pretty easy to use it... you just have to include it in your script and call the `render()` method:
Expand Down

0 comments on commit dbcda15

Please sign in to comment.