hotweby
Version:
Automatic multiway hot-reloading webserver
68 lines (52 loc) • 3.13 kB
Markdown
# hotweby




<!--  -->



<!-- 
 -->
Automatic hot-reloading webserver based on a file watcher, a websocket server, a id endpoint and a html injected javascript function.
- [hotweby](#hotweby)
- [Getting started](#getting-started)
- [Global install](#global-install)
- [Show help](#show-help)
- [Run as webserver](#run-as-webserver)
- [Contributing](#contributing)
- [License](#license)
- [Disclaimer](#disclaimer)
----
# Getting started
## Global install
```sh
npm i -g @noblemajo/hotweby
```
## Show help
```sh
hotweby --help
```
```js
Usage: hotweby [options]
Automatic multiway hot-reloading webserver
Options:
-V, --version output the version number
-p, --port <number> hot reload server port (env: SERVE_PORT)
-d, --dir <string> target dir (default: ".", env: SERVE_PATH)
-i, --id-endpoint <string> id endpoint (default: "/noblemajo-serve-id", env: SERVE_ID_ENDPOINT)
-h, --help display help for command
```
## Run as webserver
```sh
hotweby -p 8080 -d html
```
# Contributing
Contributions to this project are welcome!
Interested users can refer to the guidelines provided in the [CONTRIBUTING.md](CONTRIBUTING.md) file to contribute to the project and help improve its functionality and features.
# License
This project is licensed under the [MIT license](LICENSE), providing users with flexibility and freedom to use and modify the software according to their needs.
# Disclaimer
This project is provided without warranties.
Users are advised to review the accompanying license for more information on the terms of use and limitations of liability.