empty-server is a simple, zero-configuration command-line http server. It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development, and learning.
cnpm install empty-server -g
npm install empty-server -g
The empty-server
works without configuration.
Static Resource Services
"empty-server -d / -p 8080 -o localhost -P http://129.204.139.211"
You can pass a hash of configuration options to empty-server
.
Allowed values are as follows
Name | Type | Default | Description |
---|---|---|---|
-p or --port |
{number} |
8080 | port is used to specify the port of the service |
-P or --proxy |
{String} |
proxy is used to configure proxies for services | |
-o or --host |
{string} |
loclhost |
host is used to configure monitored hosts |
-d or --root |
{string} |
"process.cwd()" | root is used to configure the static file root directory |
freemenL |