{"id":18285398,"url":"https://github.com/lh0x00/server-redirect","last_synced_at":"2026-05-01T19:34:34.227Z","repository":{"id":118762216,"uuid":"167795505","full_name":"lh0x00/server-redirect","owner":"lh0x00","description":"a tool help to setup server redirect support expose by localtunnel","archived":false,"fork":false,"pushed_at":"2019-04-05T13:28:39.000Z","size":12,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T05:17:58.838Z","etag":null,"topics":["api","cli","cors","expose","expose-server","express","localtunnel","localtunnel-server","redirect","server","server-redirect"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/server-redirect","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lh0x00.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-27T10:19:37.000Z","updated_at":"2023-09-08T17:49:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"0475557a-727b-4141-9a4c-99d9b5cffd5d","html_url":"https://github.com/lh0x00/server-redirect","commit_stats":null,"previous_names":["lamhieu-vk/server-redirect"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lh0x00/server-redirect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lh0x00%2Fserver-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lh0x00%2Fserver-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lh0x00%2Fserver-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lh0x00%2Fserver-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lh0x00","download_url":"https://codeload.github.com/lh0x00/server-redirect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lh0x00%2Fserver-redirect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32510808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cli","cors","expose","expose-server","express","localtunnel","localtunnel-server","redirect","server","server-redirect"],"created_at":"2024-11-05T13:16:32.588Z","updated_at":"2026-05-01T19:34:34.208Z","avatar_url":"https://github.com/lh0x00.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# server-redirect\n\n![image](https://user-images.githubusercontent.com/9839768/54528420-83273500-49af-11e9-979c-6a292aa9704f.png)\n\n## About\n\n[![npm version][npm-version-image]][npm-url]\n[![npm downloads][npm-downloads-image]][npm-url]\n[![github issues][github-issues-image]][github-issues-url]\n\na tool help to setup server redirect support expose by localtunnel\n\n## Installation\n\n```bash\n$ npm install -g server-redirect\n// or yarn\n$ yarn global add server-redirect\n```\n\n\n## Usage\n\n```bash\nredirector [options]\n\noptions:\n-p, --port \u003cport\u003e server port, not required and default is 3000\n-u, --url \u003curl\u003e redirect to url, required\n-c, --cookie should use cookie, not required, default is false\n-e, --expose should expose, not required, default is false\n-s, --subdomain \u003csubdomain\u003e subdomain on the expose server, only use when expose is true\n```\n\n## Examples\n\n**Default**\n\n```bash\nredirector -u \u003curl\u003e\n```\n\n**Specify a port in local**\n\n```bash\nredirector -u \u003curl\u003e -p 4001\n```\n\n**Use cookie**\n\n```bash\nredirector -u \u003curl\u003e -c\n```\n\n**Expose server**\n\n```bash\n# Random subdomain\nredirector -u \u003curl\u003e -e\n\n# Set subdomain\nredirector -u \u003curl\u003e -e -s do-something-great\n```\n\n**Full options**\n```bash\nredirector -u \u003curl\u003e -p 4001 -c -e -s do-something-great\n```\n\n\n[npm-url]: https://npmjs.org/package/server-redirect\n[npm-version-image]: https://badge.fury.io/js/server-redirect.svg\n[npm-downloads-image]: https://img.shields.io/npm/dm/server-redirect.svg\n[github-issues-image]: https://img.shields.io/github/issues/lamhieu-vk/server-redirect.svg\n[github-issues-url]: https://github.com/lamhieu-vk/server-redirect/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flh0x00%2Fserver-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flh0x00%2Fserver-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flh0x00%2Fserver-redirect/lists"}