Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webextensions/monitor-server-requests
Launch a simple HTTP server and monitor requests received
https://github.com/webextensions/monitor-server-requests
Last synced: about 2 months ago
JSON representation
Launch a simple HTTP server and monitor requests received
- Host: GitHub
- URL: https://github.com/webextensions/monitor-server-requests
- Owner: webextensions
- License: mit
- Created: 2024-05-12T09:53:53.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-20T14:53:53.000Z (6 months ago)
- Last Synced: 2024-11-09T06:16:36.468Z (2 months ago)
- Language: JavaScript
- Size: 681 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# monitor-server-requests
Launch a simple HTTP server and monitor/log the requests received## Installation
```bash
$ npm install --global monitor-server-requests
```## Usage
```bash
$ monitor-server-requests$ monitor-server-requests --port
For example:
$ monitor-server-requests --port 8080$ monitor-server-requests --port-dynamic
```## Help
```bash
$ monitor-server-requests --help
Usage: monitor-server-requests [options]Launch a simple HTTP server and monitor/log the requests received
Options:
-V, --version output the version number
-p, --port Port number to be used (eg: 3000, 4430, 8000, 8080 etc) ; (default: 8080)
-d, --port-dynamic Use dynamic port number ; (default: false)
--disable-static Do not serve static files ; (default: false)
-s, --status Status code for unmatched requests (eg: 200, 404, 500 etc) ; (default: 404)
--delay-min Minimum delay in milliseconds ; (default: 0)
--delay-max Maximum delay in milliseconds ; (default: 0)
--abort-randomly Abort randomly (Probability between 0 to 1) ; (default: 0)
--optimize-for Optimize for (size, reading, balanced) ; (default: "balanced")
-h, --help display help for command
```