biofriction-wp-theme/node_modules/debug-fabulous
jorge a7910c81a8 moved to new repo 2021-10-26 14:18:09 +02:00
..
node_modules/object-assign moved to new repo 2021-10-26 14:18:09 +02:00
src moved to new repo 2021-10-26 14:18:09 +02:00
LICENSE moved to new repo 2021-10-26 14:18:09 +02:00
README.md moved to new repo 2021-10-26 14:18:09 +02:00
index.js moved to new repo 2021-10-26 14:18:09 +02:00
package.json moved to new repo 2021-10-26 14:18:09 +02:00

README.md

debug-fabulous

Install

npm install --save debug-fabulous

Purpose

Wrapper / Extension around visionmedia's debug to allow lazy evaluation of debugging via closure handling.

This library essentially wraps two things:

Use

For thorough usage see the tests.

lazy-eval

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');