2.0.0 • Published 7 years ago

speeds v2.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

speeds

NPM version build status npm download semantic-release

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

License

MIT

2.0.0

7 years ago

1.0.0

9 years ago

0.0.1

10 years ago

0.0.0

10 years ago