ForestL18/sysproxy-node
Use Node.js to modify system proxy settings, support Windows, MacOS, Linux (Gnome/KDE)
README

Install this test package
pnpm add @mihomo-party/sysproxy
|
node14 |
node16 |
node18 |
| Windows x64 |
✓ |
✓ |
✓ |
| Windows x32 |
✓ |
✓ |
✓ |
| Windows arm64 |
✓ |
✓ |
✓ |
| macOS x64 |
✓ |
✓ |
✓ |
| macOS arm64 |
✓ |
✓ |
✓ |
| Linux x64 gnu |
✓ |
✓ |
✓ |
| Linux arm64 gnu |
✓ |
✓ |
✓ |
function triggerManualProxy(enable: boolean, host: string, port: number, bypass: string): void;
function triggerAutoProxy(enable: boolean, url: string): void;