Debug
Licence: MIT

A debug utility for pretty log output..
Install
npm install @superhero/debug
...or just set the dependency in your package.json file:
{
"dependencies":
{
"@superhero/debug": "*"
}
}
Example
const
Debug = require('@superhero/debug'),
debug = new Debug();
debug.log('what is this?', {foo:'bar', baz:'qux'});
Or the shorter version if you don't need to define any options:
require('@superhero/debug').log('what is this?', {foo:'bar', baz:'qux'});
Options
All options are optional.
{
maxArrayLength: 10,
maxObjectDepth: 10,
maxStringLength: 100,
color: undefined,
colors: true,
date: true,
dateFormat: 'yyyy-mm-dd HH:MM:ss',
debug: true,
index: false,
prefix: false,
separator: '\t',
stderr: process.stderr,
stdout: process.stdout
}