1.1.0 • Published 6 years ago

console-json v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

console-json

npm package

To lazy to type JSON.stringify(obj, null, indent) try console.json(obj)

Logo designed by Liffy Designs

Usage

Install

npm i console-json -S

or

yarn add console-json

Use

import console-json; // or require('console-json');

const myObj = {
    foo: 'bar'
}
console.json(myObj);

/**
{
    foo: 'bar'
}
**/

Indent

Optional indent can be passed to console.json, defaults to 4.

console.json(myObj, 2);
1.1.0

6 years ago

1.0.1

7 years ago