Skip to content

hx24/cross-os-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');
})();

About

manage system proxy, support windows & macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published