Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

basic-http-proxy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-http-proxy

Basic HTTP/S proxy that simply works

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

basic-http-proxy

npm version Node.js dependencies npm downloads

Basic HTTP/S proxy that simply works. Support both HTTP and HTTPS.

Installation

Type npm install basic-http-proxy -g to install.

How to use

There are few ways to use the proxy:

  • Thru command-line interface
  • Thru another Node.js program
  • Run it in Docker

Running it with command-line interface

Type proxy and it will start listening to port 8080.

To configure it to run under port 8888, set environment variable PORT to 8888.

Running it in Node.js

You can also run the proxy inside another Node.js program.

require('basic-http-proxy')({
  port: 8080
});

Running it with Docker

The proxy server can be run under Docker with node:alpine image.

docker build -t proxy .
docker run -d -p 8080:8080 proxy

Configuration

To configure the behavior of the proxy, you can either specify in environment variable, or thru JSON object.

Env var nameJSON nameDescriptionDefault
PORTportPort the server will listen to8080

Roadmap

Check out this list for planned features.

Contributions

Like us? Star us.

Found a bug? File us an issue.

Keywords

FAQs

Package last updated on 26 Apr 2017

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc