New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

crapify

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crapify

a proxy for simulating slow, spotty, HTTP connections

latest
npmnpm
Version
1.2.0
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

crapify

Build Status

crapify is a proxy for simulating slow, spotty, HTTP connections. It allows you to vary:

  • the upload and download speed of requests.
  • the maximum number of concurrent outbound HTTP connections.
  • the number of bytes dropped during transfers.

Contribute to Crapify on GitHub

Usage

  • npm install crapify -g
  • crapify --port=5000 --speed=3000 --concurrency=2, where:
    • port is the port crapify should start on.
    • speed is the connection speed in bytes/second.
    • concurrency is the number of concurrent outbound connections allowed.
    • drop-frequency how 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 an https proxy, with 127.0.0.1, and :5000, respectively.

If you like crapify, you may also like...

  • tylertreat/Comcast, a Go frontend that simulates terrible network connections by directly modifying settings for your network interfaces.

Keywords

proxy

FAQs

Package last updated on 13 Jan 2015

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