prettify-js
v1.0.1
Published
Beautify javascript value to JSON string
Downloads
1,654
Readme
prettify-js
Convert JavaScript value to readable JSON string for terminal/console.
Install
$ npm install prettify-js -D
Examples
var beautify = require('prettify-js');
console.log(beautify({hello: 'world', body: 'This is pretty json' }));
-----
{
"hello": "world",
"body": "This is pretty json"
}