Socket
Book a DemoInstallSign in
Socket

fire-proxy

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fire-proxy

a nodejs module for HTTP proxy library for Express JS

2.0.3
latest
Source
npmnpm
Version published
Weekly downloads
17
54.55%
Maintainers
1
Weekly downloads
 
Created
Source

Fire Proxy

fire-proxy is a nodejs module for HTTP proxy library for Express JS. It using request to steam incoming request to the destination server.

Install

$ npm install --save fire-proxy

Example

const app = express();
const fireProxy = require("fire-proxy");
app.use("./api", fireProxy({
    target: "http://www.google.com.hk" // and other options
}));

Options

  • target - the target URL you want to forward to
  • timeout - integer containing the number of milliseconds to wait for a server to send response headers (and start the response body) before aborting the request. For more detail, click here
  • maxRedirects - the maximum number of redirects to follow, For more detail, click here

TODO:

  • more request option
  • better documentation
  • handle cookies

Keywords

express

FAQs

Package last updated on 03 Jun 2020

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.