Crapify - 慢速网络模拟器


ISC
跨平台
JavaScript

软件简介

Crapify 是一个代理服务器,用来模拟缓慢而且不稳定的 HTTP 网络连接,可以让你限制:

  • 上传和下载速度

  • 对外 HTTP 请求的并发连接数

使用方法:

  • npm install crapify -g

  • crapify --port=5000 --speed=3000 --concurrency=2, where:

    • port 侦听端口

    • speed 连接速率

    • concurrency 并发连接数

示例:

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

  1. Go to system preferences.

  2. Click on Network.

  3. Click on Advanced.

  4. Click on Proxies.

  5. Enable an http, and an https proxy, with 127.0.0.1, and :5000, respectively.