stream-counter
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/stream-counter package

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    70,783
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    70,783
  • 0.2.0
    109,780
  • 0.1.0
    28,956

Package Sidebar

Install

npm i stream-counter

Weekly Downloads

194,826

Version

1.0.0

License

MIT

Last publish

Collaborators

  • superjoe