debug-stream
Use the debug module on a stream
npm install debug-stream
Usage
var debugStream = 'my-app'processstdin// just drain it// or if you're already using debugvar debug = 'my-app'var debugStream = debugprocessstdin
Running the above program with DEBUG=*
will use the debug module on every buffer/object
in the stream.
You can add an optional format string as well
var debugStream = 'my-app'processstdin// just drain it
The debug stream behaives as pass through stream so can just insert it in any existing pipe chain
inputStream
Browser support
As with debug, this module also supports the browser environment through either browserify or webpack.
To enable the functionality, you need to run require('debug').enable('*')
in your console. It will persist
this setting in localStorage, until you run require('debug').disable()
.
License
MIT