Open limitlis opened 5 years ago
I know there's tons of options out there, but this one is my go-to. Primarily because it's hard to forget, but also has just the right amount of features.
httpster
npm i -g httpster
Default port is 3333.
With custom port: httpster -p 8080
httpster -p 8080
Declare directory as root: httpster -d /dist
httpster -d /dist
Even more advanced usage, https://github.com/SimbCo/httpster
Yes, this is an easy hack and daily uses trick. But I use live-server.
I know there's tons of options out there, but this one is my go-to. Primarily because it's hard to forget, but also has just the right amount of features.
httpster
Install:
npm i -g httpster
Then from any folder you want served, simply:
httpster
Default port is 3333.
Advanced Usage:
With custom port:
httpster -p 8080
Declare directory as root:
httpster -d /dist
Even more advanced usage, https://github.com/SimbCo/httpster