strong-debug-utils
v1.0.2
Published
Utilities for extending the debug module.
Downloads
77
Readme
strong-debug-utils
Utilities for extending the debug module.
Usage: Create a module to import strong-debug-utils and set your prefix, then import that module and set your suffix as appropriate for your debug statements.
Example:
// debug.js
module.exports = require('strong-debug-utils')('foo');
// bar.js
var debug = require('./debug.js')('bar');
// prints to debug with the 'foo:bar' header
debug('I am in bar!');