Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

speeds

node-modules17MIT2.0.0

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

speeds, stream, stream2, Transform, downstream

readme

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

changelog

2.0.0 / 2017-06-13

  • refactor: upgrade debug and only support new node versions (#6)

1.0.0 / 2015-04-27

  • fix: resolve timeout problem (@良田)
  • deps: upgrade debug to the latest (@popomore)

0.0.1 / 2014-03-11

  • first commit