/choc-server

tiny static server can handle Content-Type with "text/css"、"text/html"、"image/png"

Primary LanguageJavaScript

How to use

Choc-server is a local development tool, include directory listing、local server starting.

create static server

# create static server, use process.cwd() as default
npx choc-server
# create static server with specify directory and port
npx choc-server root=~/Downloads/ port=8080

choc-server VS http-server

vs http-server