json-colorz
This package allows you to display your json object on the console in a pretty format with colors.
[WIP]
Installation
$ npm install json-colorz
Usage
var jlog = require('json-colorz');
jlog([{"id":1,"email":"UDawn@porta.gov","active":true},{"id":2,"email":"LZeigler@pharetra.com","active":false},{"id":3,"email":"VSobel@neque.ly","active":false}]);
API
Why?
Jsome implements colors by the method of extending String.prototype. So, instead of using colors, I wanted to use colorz -- a basic ansi string substitution method for colorizing output. All credit for this code goes to Jsome author, Khalid REHIOUI.
See Also
- jsome: the awesome package json-colorz shamelessly duplicated
License
ISC