log-cb
A better looking method to format errors and data from a callback.
// Use inside Node callbacks.fs; // Or promises; // You can use log.err above instead:;
Installation
$ npm install --save log-cb
API
log(passMessage, [failMessage])
Log custom message for passing
passMessage
: What to log if your callback has no errors.failMessage
: What to log if your callback has errors. Defaults to something custom.
log.err(failMessage, [passMessage])
The reverse of the original function, for better syntax:
;// vslog;
License
MIT © Jamen Marz