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

tiny-reverse-proxy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-reverse-proxy

Single command line HTTP and Websocket proxy

latest
Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
6
-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

tiny-reverse-proxy

It is a single command line HTTP and Websocket proxy built on top of node-http-proxy.

Install

Install with npm:

npm install --save-dev --save-exact tiny-reverse-proxy
# or globally
npm install --global tiny-reverse-proxy

Install with yarn:

yarn add tiny-reverse-proxy --dev --exact
# or globally
yarn global add tiny-reverse-proxy

Usage

Forward requests from 127.0.0.1:8000 to 10.0.2.2:8000

tiny-reverse-proxy --proxy=10.0.2.2,8000

Forward requests from 127.0.0.1:3000 to my.host:8000

tiny-reverse-proxy --proxy=my.host,8000,3000

Multiple proxies at the same time

tiny-reverse-proxy --proxy=10.0.2.2,8000 --proxy=my.host,8000,3000

You can also use the environment variable TINY_REVERSE_PROXY with the same options

TINY_REVERSE_PROXY="--proxy=10.0.2.2,8000 --proxy=my.host,8000,3000" tiny-reverse-proxy

Limitations

It doesn't handle HTTPS requests.
It can't send a single request to multiple hosts.

Feel free to open pull requests.

Keywords

proxy

FAQs

Package last updated on 24 Oct 2019

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