Skip to content

lh0x00/server-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server-redirect

image

About

npm version npm downloads github issues

a tool help to setup server redirect support expose by localtunnel

Installation

$ npm install -g server-redirect
// or yarn
$ yarn global add server-redirect

Usage

redirector [options]

options:
-p, --port <port> server port, not required and default is 3000
-u, --url <url> redirect to url, required
-c, --cookie should use cookie, not required, default is false
-e, --expose should expose, not required, default is false
-s, --subdomain <subdomain> subdomain on the expose server, only use when expose is true

Examples

Default

redirector -u <url>

Specify a port in local

redirector -u <url> -p 4001

Use cookie

redirector -u <url> -c

Expose server

# Random subdomain
redirector -u <url> -e

# Set subdomain
redirector -u <url> -e -s do-something-great

Full options

redirector -u <url> -p 4001 -c -e -s do-something-great