Skip to content

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

License

Notifications You must be signed in to change notification settings

node-modules/speeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages