Socket
Book a DemoInstallSign in
Socket

speedometer-stream

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speedometer-stream

A through stream that emits speed events!

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 24 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts