Package Exports
- jsome
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jsome) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Make your JSON objects look AWSOME !!
This package allows you to display your json object on the console in a pretty format with colors.
Installation :
$ npm install jsome
on your nodejs application, when you need to console.log a json object, all you need to do is to use the jsome function, see following example (json generates with filltext :
var jsome = require('jsome');
var jsome([{"id":1,"email":"UDawn@porta.gov","active":true},{"id":2,"email":"LZeigler@pharetra.com","active":false},{"id":3,"email":"VSobel@neque.ly","active":false}]);
Then your json object will be displayed on the console in a pretty format with Awsome colors ! Here is the result :
You can add some points to show levels of elements... very helpful when you are dealing with complex json objects
jsome.level.show = true;
The object jsome.level has a default value the following json :
level = {
show : false,
char : '.',
color : 'yellow',
spaces : 4
};
You can change the level char, its color ( see colors package ) and the number of spaces for each level.