1.0.7 • Published 2 years ago
servn v1.0.7
Servn
Basically, I wanted a Browserify CLI tool that watches files and serves over HTTPS, and thus, Servn was born
Installation
npm install -g servn
Usage
servn -f main.js
Help
Servn
Usage: servn ...args [options]
Options:
--host define the host
-f, --file define the entry file
-e, --entry define the entry path
-p, --port define the port
-s, --tls whether to use https or http
-d, --dir define the TLS cert directory
-c, --cert define the TLS cert
-k, --key define the TLS key
-h, --help show this dialog
Examples:
servn
servn . -p 3000
servn ~/project --host example.com --file index.js
References
mkcert -install
mkcert localhost