stream-debug

Debug streams.

npm install stream-debug
6 downloads in the last week
21 downloads in the last month

stream-debug

Debug streams. Outputs everything they do. Except for content. That might spam your console.

Usage

var debug = require('stream-debug');
var Stream = require('stream');

var stream = new Stream();
debug(stream, 'name');
stream.emit('data', 'foo');
// console.log: [name] data

API

debug(stream[, name])

Debug stream with optional name. Returns stream so you can do

var stream = debug(new Stream(), 'name');

Installation

With npm do

$ npm install stream-debug

License

(MIT)

npm loves you