Debug streams. Outputs everything they do. Except for content. That might spam your console.
var debug = require('stream-debug');
var Stream = require('stream');
var stream = new Stream();
debug(stream, 'name');
stream.emit('data', 'foo');
// console.log: [name] data
Debug stream
with optional name
. Returns stream
so you can do
var stream = debug(new Stream(), 'name');
With npm do
$ npm install stream-debug
(MIT)