JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1421
  • Score
    100M100P100Q107111F
  • License ISC

a http(s) proxy server

Package Exports

  • node-http-proxy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-http-proxy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-http-proxy

a node http(s) proxy server with single process mode or multi process mode(set parameter '-i')

Install node-http-proxy

$npm install -g node-http-proxy

Server Start

$nproxy start -p 9999 -i 1
#start proxy server
#create child process 1 (default 1) or more(limit by cpu cores)
#on port 9999(default 8234)

$nproxy stop #stop server

Use in code

var ProxyMaster = require('node-http-proxy').proxyMaster;

var proxymaster = new ProxyMaster({instance:1,port:8123});

proxymaster.start();

Useage

$curl -x 127.0.0.1:9999 http://www.google.com/

Something need to do

1.finished nproxy command
2.support other http method