Skip to content
node.js module to keep track of how many bytes have been written to a stream
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test works! Apr 5, 2013
.gitignore
LICENSE Add MIT LICENSE file, updated package.json Sep 20, 2013
README.md works! Apr 5, 2013
index.js drop node v0.8 support, remove readable-stream dependency May 8, 2014
package.json Release 1.0.0 May 8, 2014

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);
You can’t perform that action at this time.