Skip to content

varHarrie/http-port-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-port-proxy

HTTP port proxying library.

Usage

npm install --save http-port-proxy
import start from 'http-port-proxy'

const targets = [
  {
    condition: {
      host: "www.sb.com",         // host: string | RegExp
                                  // url:  string | RegExp
    },
    host: "www.baidu.com",        // default to "localhost"
    port: 80                      // default to 80
  }
]

start({
  targets,
  // port: 80                     // default to 80
})
  .then((/* server */) => console.log('Server is listening...'))

CLI

npm install -g http-port-proxy
http-port-proxy <config-path>

About

📡 Http port proxying library.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors