stream-counter

keeps track of how many bytes have been written to a stream

MIT 3 个版本
安装
npm install stream-counter
yarn add stream-counter
pnpm add stream-counter
bun add stream-counter
README

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);
版本列表
1.0.0 2014-05-08
0.2.0 2013-09-08
0.1.0 2013-04-05