throttleneck

0.0.1 • Public • Published

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"
  }

Package Sidebar

Install

npm i throttleneck

Weekly Downloads

1

Version

0.0.1

License

UNLICENSED

Unpacked Size

43.4 kB

Total Files

14

Last publish

Collaborators

  • pebanfield