speeds

Speeds controllable stream. Uou can control the downstream speed on your own.

speeds

Speeds controllable stream. Uou can control the downstream speed on your own.

$ npm install speeds
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);
});

MIT