1.0.2 • Published 3 years ago
@takanashi-hosh1no/proxytools v1.0.2
ProxyTools
A simple library to configure system proxy settings.
Usages
import { getProxyManager, ProxyStack } from "@takanashi-hosh1no/proxytools"
let pm = getProxyManager()
let proxy = new ProxyStack("socks.proxy.com", 10808, "http.proxy.com", 8080)
// or
// let proxy = new ProxyStack("socks.proxy.com", 10808, "", -1)
// let proxy = new ProxyStack("", -1, "http.proxy.com", 8080)
// apply proxy settings to system
pm.setProxy(proxy)
// clear proxy settings
pm.clearProxy()
Credits
Qv2ray
for modify proxy setting on GNOME or KDE
v2rayA
for modify proxy setting on MacOS