1.0.0 • Published 10 years ago

stream-counter v1.0.0

Weekly downloads
292,296
License
MIT
Repository
github
Last release
10 years ago

stream-counter

Keep track of how many bytes have been written to a stream.

Usage

var StreamCounter = require('stream-counter');
var counter = new StreamCounter();
counter.on('progress', function() {
  console.log("progress", counter.bytes);
});
fs.createReadStream('foo.txt').pipe(counter);