cross-os-proxy

configure system proxy settings, support macOS & windows


Keywords
proxy, macOS, networksetup, osx, os x, windows, sys proxy, system proxy, network
License
ISC
Install
npm install cross-os-proxy@2.2.0

Documentation

cross-os-proxy

configure system proxy settings

support platforms:

  • windows
  • macOS

Install

$ npm install --save cross-os-proxy

Usage

const osProxy = require('cross-os-proxy');

(async () => {
    await osProxy.setProxy('127.0.0.1', 9999); // set http and https proxy
    console.log('done');
})();

(async () => {
    await osProxy.closeProxy(); // close http and https proxy
    console.log('done');
})();