# yarn
$ yarn global add @arthur791004/proxy-server
# npm
$ npm install --global @arthur791004/proxy-server
Provide a proxy.config.json
at current working directory
{
"port": "number",
"proxy": {
"<route>": "<http-proxy-options>"
}
}
Run as follow
$ proxy-server
- port - the port which proxy listen on
- proxy
- key - route path
- value - http proxy options and you could see documents at here