@xcodebuild/global-proxy
v0.0.6
Published
Set system proxy for mac and windows platform.
Downloads
9
Readme
global-proxy
Set system proxy for mac and windows platform.
Installation
$ npm install --save global-proxy
Usage
import globalProxy from 'global-proxy';
// globalProxy.enable(hostname, port[, protocol])
globalProxy.enable('127.0.0.1', 9000, 'http')
.then((stdout) => {
console.log(stdout);
})
.catch((error) => {
console.log(error);
});
globalProxy.disable()
.then((stdout) => {
console.log(stdout);
})
.catch((error) => {
console.log(error);
});
Related
- global-proxy-cli - cli for global-proxy.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.