0.0.1 • Published 5 years ago

throttleneck v0.0.1

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
5 years ago

throttleneck

A very basic NPM wrapper to call wondershaper from NPM scripts.

Overview

  • Can be used to throttle outgoing/incoming egress of network adapters.
  • Intended to be used with various network setups for local throttling and debugging/development purposes.

  • For example, you could set up Internet Connection Sharing and then throttle the resulting wireless connection. This would enable bandwidth testing of devices connected to your local wireless connection.

Note : wondershaper is included as a git submodule see wondershaper README for more info

throttleneck quickstart

  1. list available ethernet adapters
npm run ./node_modules/throttleneck/list-adapters

or use ifconfig

  1. throttle egress - outgoing(upload) or incoming(download) or both
npm run ./node_modules/throttleneck/shape --KBPS_UP=500 --KBPS_DOWN=500
  1. create your own shortcut commands, e.g.,
"scripts": {
    "throttle-150": "npm run shape --KBPS_DOWN=150 --KBPS_UP=0"
  }