prettify-js

1.0.1 • Public • Published

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"
    }

Readme

Keywords

Package Sidebar

Install

npm i prettify-js

Weekly Downloads

2,739

Version

1.0.1

License

MIT

Last publish

Collaborators

  • savanakbari