Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

latency-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

latency-stream

A stream that can mimic network latency

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

latency-stream

A stream that can mimic network latency.

npm install latency-stream

Usage

const LatencyStream = require('latency-stream')

const latency = new LatencyStream(100) // add a 100ms of latency

someStream.pipe(latency).pipe(someDestination)

You can also set an interval of latency and it will pick a random number inbetween

const latency = new LatencyStream([100, 200]) // add between 100-200 ms of latency

License

MIT

FAQs

Package last updated on 04 Feb 2020

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