proxy-setup
Configure setting of web-proxy. It's available on both script and terminal. Currently, works on Mac and Windows, not Linux. On Mac, need to enter a password of superuser. On Windows, need to restart IE after configuring.
Install
npm install -g proxy-setup
Usage
script
var ps = ; // set web-proxypswebserver = 'localhost:8080';pswebserver = '127.0.0.1'; // clear web-proxypswebserver = ''; // enable and disablepswebenabled = true;pswebenabled = false; // save current setting and restore it console //=> falseconsole //=> '' psweb; pswebenabled = true;pswebserver = 'temp-server:9999'; console //=> trueconsole //=> temp-server:9999 psweb; console //=> falseconsole //=> ''
terminal
# get information current web-proxy proxysetup #=> { enabled: true, server: 'localhost:8080' } # enable web-proxy proxysetup -e # disable web-proxy proxysetup -d # set web-proxy proxysetup -h localhost:8080proxysetup -h 127.0.0.1 # clear web-proxy proxysetup -h # set web-proxy and enable proxysetup -e -h localhost:8080
Test
npm test
License
Licensed under the MIT license.