1.0.8 • Published 5 years ago

http-live-simulator v1.0.8

Weekly downloads
35
License
MIT
Repository
github
Last release
5 years ago

HTTP Live Simulator

http-live-simulator is a simple http file server for local development written in Node.JS. It is similar, for instance, to python's http.server module or node's http-server, but with one major difference: It adds a random time delay of 200-500 milliseconds before serving each request in order to simulate a live hosted environment where such delays are a common occurrence.

Installation:

npm install -g http-live-simulator

Usage:

$ http-live
Serving Directory: /your/current/path
Port 8080
Delay: 200-500ms

You can change the behaviour of http live server with following optional arguments:

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  -p PORT, --port PORT  Port number for running the server
  -m MIN_DELAY, --min-delay MIN_DELAY
                        Minimum delay in milliseconds
  -x MAX_DELAY, --max-delay MAX_DELAY
                        Maximum delay in milliseconds

Uninstallation:

npm uninstall -g http-live-simulator

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago