1.0.0 • Published 4 years ago

@arthur791004/proxy-server v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Proxy Server

Installation

# yarn
$ yarn global add @arthur791004/proxy-server

# npm
$ npm install --global @arthur791004/proxy-server

Usage

Provide a proxy.config.json at current working directory

{
  "port": "number",
  "proxy": {
    "<route>": "<http-proxy-options>"
  }
}

Options

  • port - the port which proxy listen on
  • proxy
    • key - route path
    • value: http proxy options and you could see documents at here