Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

speed-meter

0.0.1 • Public • Published

Speed Meter

Measure the speed of a readable stream

Install

$ npm install speed-meter --save

Use

var Meter = require('speed-meter');
var stream = require('fs').createReadStream('/path/to/my/file');
var meter = Meter(stream);
 
var interval = setInterval(function() {
  console.log('reading at ' + meter.speed + ' bytes / sec');
}, 1000);
 
stream.on('end', function() {
  clearInterval(interval);
});

Keywords

none

install

npm i speed-meter

Downloadsweekly downloads

0

version

0.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability