2 releases
0.1.1 | Dec 25, 2020 |
---|---|
0.1.0 | Sep 22, 2020 |
#22 in #serving
24KB
localserver
Simple server to serve specified folder locally
Motivation
Sometimes you just need a simple server that would serve a certain directory. For example, when you're compiling your code to Web Assembly, browser won't let you access those files via file URI scheme (file:\\
), you'll need to serve them via http.
Implementation
It leverages the power of warp, so all the complexity is handled there.
Usage
localserver /path/to/folder [port] (optional)
Dependencies
~15–25MB
~377K SLoC