Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sitespeed.io/throttle

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sitespeed.io/throttle

Throttle your connection

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.8K
increased by44.13%
Maintainers
3
Weekly downloads
 
Created
Source

Simulate network connections Linux and Mac OS X

Inspired by tylertreat/Comcast, the connectivity setting in the WPTAgent and sltc.

This is a really early release, help us test it and make sure it works as expected :)

You can set the download/upload speed and RTT. Upload/download is in kbit/s and RTT in ms.

Start simulate a 3g network connection

throttle --up 330 --down 780 --rtt 200

Stop simulate the 3g network connection

throttle --stop

Add delay on your localhost (Linux only at the moment)

throttle --rtt 200 --localhost

Stop adding delay on localhost

throttle --stop --localhost

Use directly in NodeJS

WIP.

Run in Docker (on Linux)

Make sure to run: sudo modprobe ifb numifbs=1 before you start the container.

And then when you start your Docker container: --cap-add=NET_ADMIN

Keywords

FAQs

Package last updated on 19 Sep 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc