Skip to content

juliangruber/stream-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)