Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basedwon/servn
https://github.com/basedwon/servn
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/basedwon/servn
- Owner: basedwon
- License: mit
- Created: 2022-04-16T04:06:35.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-28T04:43:42.000Z (over 2 years ago)
- Last Synced: 2024-10-04T12:15:27.571Z (about 1 month ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Servn
Basically, I wanted a Browserify CLI tool that watches files and serves over HTTPS, and thus, Servn was born
## Installation
```sh
npm install -g servn
```## Usage
`servn -f main.js`## Help
```sh
ServnUsage: 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 dialogExamples:
servn
servn . -p 3000
servn ~/project --host example.com --file index.js
```## References
[local https tutorial](https://web.dev/how-to-use-local-https)
[mkcert](https://github.com/FiloSottile/mkcert)
```bash
mkcert -install
mkcert localhost
```