http-server Command Examples

Simple static HTTP server to serve static files. More information: https://github.com/http-party/http-server.

http-server

http-server {{path/to/directory}} {{[-p|--port]}} {{port}}

http-server --username {{username}} --password {{password}}

http-server -d {{false}}

http-server {{[-S|--ssl]}} {{[-C|--cert]}} {{path/to/cert.pem}} {{[-K|--key]}} {{path/to/key.pem}}

http-server --log-ip

http-server --cors

http-server {{[-s|--silent]}}