Skip to content

466023746/browser-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browser-proxy

auto set your browser proxy.

Usage

const {setBrowserProxy} = require('set-browser-proxy');

setBrowserProxy({
    // if don't specify this, won't open http proxy
    http: {
        host: '127.0.0.1',
        port: '3000'
    },
    // same as above
    https: {
        host: '127.0.0.3',
        port: '8084'
    }
});

maybe you need close the proxy after

const {closeBrowserProxy} = require('set-browser-proxy');

closeBrowserProxy()

// or
closeBrowserProxy({
    http: false,        // if true, close http proxy, default true
    https: false        // same as above
});

Demo

example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published