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

simple-proxy

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-proxy

A Simple and minimalist http proxy for node

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
13
30%
Maintainers
1
Weekly downloads
 
Created
Source

Simple Proxy

This is a simple http proxy that may be usefull for you. You can use it on your own http server, express app, or with the stand alone script. For examples see the examples dir.

Instalation

$ npm install simple-proxy

Script usage

page: proxy [options]

  Options:

    -h, --help             output usage information
    -v, --version          output the version number
    -L, --listen <port>    listen to port [3000]
    -M, --mount <mount>    proxy request starting with this pathname
    -H, --host <hostname>        to this hostname
    -P, --port <port>            to this port

Example

   $ proxy -M api -H remote-api.com /var/www/the_site

This will serve the files located in /var/www/the_site on the default port, 3000.

All request that begins with /api, will be proxy to remote-api.com, and not served from the local files.

##Feedback

If you need something just tell!!... :)

Keywords

proxy

FAQs

Package last updated on 06 May 2012

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