proxy-settings-manager

0.2.3 • Public • Published

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.

Package Sidebar

Install

npm i proxy-settings-manager

Weekly Downloads

0

Version

0.2.3

License

ISC

Unpacked Size

13 kB

Total Files

12

Last publish

Collaborators

  • tymmesyde