Measure the total volume of data a stream emits.
var Volume = require('stream-volume');
src
.pipe(Volume(function(vol){
console.log('Volume in bytes: %s', vol);
}))
.pipe(dest);
$ npm install stream-volume
Create a Transform stream that passes through all data and calls cb
with the total volume in bytes.
MIT