0.2.1 • Published 9 years ago

stream-monitor v0.2.1

Weekly downloads
43
License
-
Repository
github
Last release
9 years ago

view on npm npm module downloads per month Dependency Status

stream-monitor

This module extends the base Stream class with a .monitor() method. Invoking this method on a stream with print all event activity to the console.

Example
This script:

var monitor = require("stream-monitor");
var fs = require("fs");

fs.createReadStream("file.txt")
    .monitor()
    .pipe(fs.createWriteStream("file-copy.txt"))
    .monitor();

Will output something like:

Monitoring: ReadStream [n/a, 65536]
Monitoring: WriteStream [16384, n/a]
ReadStream  READABLE [0]
ReadStream  END
UNPIPE: ReadStream X WriteStream
WriteStream FINISH
ReadStream  CLOSE
WriteStream CLOSE

© 2015 Lloyd Brookes \75pound@gmail.com\. Documented by jsdoc-to-markdown.

0.2.1

9 years ago

0.2.0

9 years ago

0.1.6

9 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago