stream-counter
keeps track of how many bytes have been written to a stream
Last updated 13 years ago by superjoe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install stream-counter 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (13 years ago)

3 Versions

  • 1.0.0                                ...           13 years ago
  • 0.2.0                                ...           13 years ago
  • 0.1.0                                ...           14 years ago
Maintainers (1)
Downloads
Total 7
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE