Speeds controllable stream. Uou can control the downstream speed on your own.
JavaScript Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.jshintignore
.jshintrc
.npmignore
.travis.yml
AUTHORS
History.md
LICENSE.txt
Makefile
README.md
index.js
package.json

README.md

speeds

Build Status Dependency Status

NPM

Speeds controllable stream. Uou 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