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

/prettify-js/

    Package Sidebar

    Install

    npm i prettify-js

    Weekly Downloads

    432

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • savanakbari