stream-counter

keeps track of how many bytes have been written to a stream

npm install stream-counter
15 211 downloads in the last day
111 443 downloads in the last week
534 410 downloads in the last month

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);
npm loves you