|
il y a 11 mois | |
---|---|---|
.. | ||
node_modules | il y a 11 mois | |
src | il y a 11 mois | |
LICENSE | il y a 11 mois | |
README.md | il y a 11 mois | |
index.js | il y a 11 mois | |
package.json | il y a 11 mois |
npm install --save debug-fabulous
Wrapper / Extension around visionmedia's debug to allow lazy evaluation of debugging via closure handling.
This library essentially wraps two things:
For thorough usage see the tests.
var debug = require('')();
// force namespace to be enabled otherwise it assumes process.env.DEBUG is setup
// debug.save('myNamespace');
// debug.enable(debug.load())
debug = debug('debug-fabulous');
debug(function(){return 'ya something to log' + someLargeHarryString;});
debug('small out');