Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lh0x00/server-redirect
a tool help to setup server redirect support expose by localtunnel
https://github.com/lh0x00/server-redirect
api cli cors expose expose-server express localtunnel localtunnel-server redirect server server-redirect
Last synced: 9 days ago
JSON representation
a tool help to setup server redirect support expose by localtunnel
- Host: GitHub
- URL: https://github.com/lh0x00/server-redirect
- Owner: lh0x00
- License: mit
- Created: 2019-01-27T10:19:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-05T13:28:39.000Z (over 5 years ago)
- Last Synced: 2024-12-07T01:47:30.800Z (25 days ago)
- Topics: api, cli, cors, expose, expose-server, express, localtunnel, localtunnel-server, redirect, server, server-redirect
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/server-redirect
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# server-redirect
![image](https://user-images.githubusercontent.com/9839768/54528420-83273500-49af-11e9-979c-6a292aa9704f.png)
## About
[![npm version][npm-version-image]][npm-url]
[![npm downloads][npm-downloads-image]][npm-url]
[![github issues][github-issues-image]][github-issues-url]a tool help to setup server redirect support expose by localtunnel
## Installation
```bash
$ npm install -g server-redirect
// or yarn
$ yarn global add server-redirect
```## Usage
```bash
redirector [options]options:
-p, --port server port, not required and default is 3000
-u, --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 on the expose server, only use when expose is true
```## Examples
**Default**
```bash
redirector -u
```**Specify a port in local**
```bash
redirector -u -p 4001
```**Use cookie**
```bash
redirector -u -c
```**Expose server**
```bash
# Random subdomain
redirector -u -e# Set subdomain
redirector -u -e -s do-something-great
```**Full options**
```bash
redirector -u -p 4001 -c -e -s do-something-great
```[npm-url]: https://npmjs.org/package/server-redirect
[npm-version-image]: https://badge.fury.io/js/server-redirect.svg
[npm-downloads-image]: https://img.shields.io/npm/dm/server-redirect.svg
[github-issues-image]: https://img.shields.io/github/issues/lamhieu-vk/server-redirect.svg
[github-issues-url]: https://github.com/lamhieu-vk/server-redirect/issues