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

Readme

Keywords

none

Package Sidebar

Install

npm i stream-counter

Weekly Downloads

272,501

Version

1.0.0

License

MIT

Last publish

Collaborators

  • superjoe