1.1.0 • Published 11 years ago
connect-limit v1.1.0
crapify
crapify is a proxy for simulating slow, spotty, HTTP connections. It allows you to limit:
- the upload and download speed of requests.
- the maximum number of concurrent outbound HTTP connections.
Contribute to Crapify on GitHub
Usage
npm install crapify -gcrapify --port=5000 --speed=3000 --concurrency=2, where:portis the port crapify should start on.speedis the connection speed in bytes/second.concurrencyis the number of concurrent outbound connections allowed.drop-frequencyhow often should bytes be dropped? (byte count%drop frequency).
Examples
usage with npm
npm config set proxy http://127.0.0.1:5000
usage with curl
curl -v --proxy http://127.0.0.1:5000 https://www.google.com
usage with OSX
- Go to
system preferences. - Click on
Network. - Click on
Advanced. - Click on
Proxies. - Enable an
http, and anhttpsproxy, with127.0.0.1, and:5000, respectively.
1.1.0
11 years ago