https://github.com/aslafy-z/serve-redirect-node
https://github.com/aslafy-z/serve-redirect-node
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aslafy-z/serve-redirect-node
- Owner: aslafy-z
- Created: 2020-07-28T16:31:08.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T11:43:18.000Z (over 1 year ago)
- Last Synced: 2025-03-01T00:45:38.519Z (3 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serve-redirect
A super simple HTTP redirection server## Usage
`$ npx serve-redirect --port 8080 --target https://www.google.com`
### Optional Arguments
- port - port service will listen on (default 8080)
- ip - IP address service will listen on (default 0.0.0.0)
- target - url requests will redirect to (default https://www.google.com)
- code - http response code to use (default 301)