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

fwproxy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fwproxy

simple forword http/https proxy server

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Fwproxy

Simple forword http/https proxy server.

Install

npm i fwproxy -g

Usage

fwproxy

Direct start a forward proxy listen at 7888 port.

Help

fwproxy -h
Usage: fwproxy [options]

simple forword proxy http/https server

Options:
  -V, --version       output the version number
  --no-verbose        don't show log
  -v --verbose        show verbose log (default: true)
  -p --port <number>  define proxy server port (default: 7888)
  -h, --help          display help for command

As library

const Proxy = require('fwproxy');
const proxy = new Proxy({ port: 7888, verbose: true });

proxy.on('error', e => {
  console.error(e);
});

proxy.run((err) => {
  if (err) {
    console.error(err);
    return;
  }

  console.info('proxy started');
});

Test by curl

After start proxy server, then run below commands at a new shell.

export http_proxy=http://127.0.0.1:7888
export https_proxy=http://127.0.0.1:7888
curl http://www.baidu.com/
curl https://www.baidu.com/

FAQs

Package last updated on 25 Sep 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