Skip to content

A nodejs package that allows you to manage proxy settings according to your os.

Notifications You must be signed in to change notification settings

tymmesyde/node-proxy-settings-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-proxy-settings-manager

Allows you to manage proxy settings according to your os.

Currently supported:

  • Linux
    • Gnome
  • Windows

Install

npm i proxy-settings-manager

Use

const proxy = require('proxy-settings-manager');

const proxyUrl = 'http://locahost:5050';

await proxy.setHttp(proxyUrl);
await proxy.setHttps(proxyUrl);

Depending on your platform you may need to logout before changes take place

Methods

setHttp(url) : Promise

Set the http proxy url to use.

setHttps(url) : Promise

Set the https proxy url to use.

remove() : Promise

Remove the currently defined http and https proxies.

About

A nodejs package that allows you to manage proxy settings according to your os.

Resources

Stars

Watchers

Forks

Packages

No packages published