speedometer-stream
v1.0.0
Published
A through stream that emits speed events!
Downloads
3
Readme
speedometer-stream
A through stream that emits speed events! Based on speedometer.
Example
const Speedometer = require('speedometer-stream')
const fs = require('fs')
const speedometer = new Speedometer()
speedometer.on('speed', bps => console.log(`Bytes per second: ${bps}`))
fs.createReadStream('/dev/urandom')
.pipe(speedometer)
.on('data', () => {})
Installation
$ npm install speedometer-stream
license
MIT