console-pretty-print
v1.0.4
Published
Adds pretty print to console.
Downloads
10
Maintainers
Readme
console-pretty-print
Description
Adds "console-pretty-print" functionality for console
Install
npm install console-pretty-print
Usage
Add require("console-pretty-print");
as the first line of the app's main module.
require("console-pretty-print");
console.pretty({
one: 1,
two: 2,
nested: {
one: 1,
two: 2
}
});
Output:
{
"one": 1,
"two": 2,
"nested": {
"one": 1,
"two": 2
}
}
Arguments:
value
: any js object
message
: some description
indent
: spaces to indent