Socket
Socket
Sign inDemoInstall

toxy

Package Overview
Dependencies
29
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    toxy

Hackable HTTP proxy to simulate multiple server failures and unexpected conditions


Version published
Weekly downloads
678
increased by45.81%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

toxy Build Status Code Climate NPM

Pluggable and hackable HTTP proxy to simulate multiple server failures and unexpected conditions. Built for node.js/io.js. Powered by rocky

Requires node.js +0.12 or io.js +1.6

This is a work in progress

Built-in poisons

Built-in rules

Installation

npm install toxy

Examples

var toxy = require('toxy')

var proxy = toxy()
var poisons = proxy.poisons
var rules = proxy.rules

proxy
  .poison(poisons.delay({ jitter: 500 }))
  .rule(rules.random(50))
  .rule(rules.method('GET'))

Poisons

Delay
Timeout
Inject response
Bandwidth
Rate limit
Slow read
Slow open
Slow close
Throttle
Abort connection

Rules

Random
Method
Headers
Content Type
Query params
Body

License

MIT - Tomas Aparicio

Keywords

FAQs

Last updated on 01 Aug 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc