http-server

Simple zero-configuration command-line HTTP server for static files

brewmacoslinux
Try with needOr install directly
Source

About

Simple zero-configuration command-line HTTP server

Commands

http-server

Examples

Start HTTP server in current directory on default port 8080$ http-server
Start server on a specific port$ http-server -p 3000
Serve a specific directory with caching disabled$ http-server /path/to/directory -c-1