website/node_modules/stream-counter/README.md

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);


JohnCoene/chirp documentation built on May 25, 2021, 6:33 p.m.