1.0.2 • Published 3 years ago

@takanashi-hosh1no/proxytools v1.0.2

Weekly downloads
-
License
GPLv3
Repository
bitbucket
Last release
3 years ago

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

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago