🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

forward-request

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forward-request

转发请求,包括http还有https;测试的时候很方便

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

万能服务器转发神器

  • 用法
const express = require('express');
const forward = require('forward-request')
const app = express(); // 实例化express服务

app.use((req, resp, next) => {
     forward({
                req,
                resp,
                isHttps: false,
                host: 'me.host.org',
                ip: '172.16.241.11',
                path: req.originalUrl,
                showLog: false,
            });
});

FAQs

Package last updated on 26 Nov 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