Package Exports
- dbug
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dbug) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dbug
A drop-in replacement for debug, for slightly more utility.
var dbug = require('dbug')('foo:bar');
dbug('just like debug'); // except goes to stdout, not stderr
dbug(new Error('also like debug'));
// additional methods
dbug.info('info');
dbug.warn('warning');
dbug.error('red alert');Just like debug, dbug won't do anything unless the DEBUG env variable matches the dbug logger, but with slightly more lenient matching.
DEBUG=*
DEBUG=foo,quux
DEBUG=foo // also acts as foo:*
