speeds
v2.0.0
Published
Speeds controllable stream. Uou can control the downstream speed on your own.
Downloads
43
Maintainers
Readme
speeds
Speeds controllable stream.
You can control the downstream speed on your own.
Install
$ npm install speeds
Usage
var speeds = require('speeds');
var fs = require('fs');
// read data 1 byte per second
var total = 0;
fs.createReadStream(__filename).pipe(speeds(1)).on('data', function (chunk) {
total += chunk.length;
console.log('%s %d/%d bytes', Date(), chunk.length, total);
});