Discover Packages
github.com/romshark/watchserve
command
module
Version:
v1.2.5
Opens a new window with list of versions in this module.
Published: Feb 1, 2025
License: BSD-3-Clause
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
watchserve
watchserve is an HTTP file server that's watching the served file for updates and automatically reloads the page in any modern JavaScript-capable browser.
Install
Download one of the packaged executables from the latest release version .
Alternatively, you can use the Go toolchain to install watchserve.
Download the latest version of Go .
Run the following command:
go install github.com/romshark/watchserve@latest
How to use
watchserve -host localhost:8080 -f myfile.txt
-help
prints help.
-f
specifies the file to watch.
-host
specifies the server address to listen on.
-debounce
specifies how much time needs to pass after the last change was detected before a reload is triggered.
-no-redirect
disables automatic redirect to the browser on start.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.