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

crabtrap

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crabtrap

Recording and replaying HTTP proxy

latest
npmnpm
Version
0.2.3
Version published
Weekly downloads
15
150%
Maintainers
1
Weekly downloads
 
Created
Source

Crabtrap Proxy

Crabtrap is an http proxy that can capture and replay requests.

It was originally developed to help with testing web crawlers in the Crabfarm project.

crabtrap

Features:

  • Records SSL requests (using a self signed certificate).
  • When in replay mode, it uses smart url/content matching to serve the proper response.
  • Allows serving assets in a local folder at the crabtrap.io mock domain.

Usage:

To record every passing requests, first start the proxy:

crabtrap capture ./somefile

then configure your browser's proxy to use localhost:4000 and navigate.

When you are done, terminate the proxy process with Ctrl-C or TERM signal

To start replay mode use:

crabtrap replay ./somefile

The proxy will use the capture file to respond recorded requests (other requests will produce a 404 response)

To get more help on usage use

crabtrap -h

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Credits

Thank you contributors!

Crabfarm

Crabtrap is part of the Crabfarm Framework.

License

Crabtrap is © 2015 Platanus, SpA. It is free software and may be redistributed under the MIT License.

Keywords

proxy

FAQs

Package last updated on 28 Oct 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