log-block
Logging utility to generate nice looking log blocks
Installation
npm install --save log-block
Summary
A wrapper around console.log to add a blank line before and after and indent the items being logged.
Usage
var block = ;; // Multiple strings are logged on the same line; // Each array will be logged on it's own line; // Objects will be stringified
Also works nicely in combination with chalk. E.g.
;
Browser
Serve dist/log-block.js
or dist/log-block.min.js
and then access log-block
via window.logBlock
.
Contributing
Please see the contribution guidelines.