prettify-js
Version:
Beautify javascript value to JSON string
32 lines (14 loc) • 358 B
Markdown
# 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"
}
```