Menu

simplehttpserver

September 1, 2017 - javascript

simplehttpserver on npm

Instalation

npm install simplehttpserver -g

Run the server

simplehttpserver [directory]
simplehttpserver .    # current directory

View the page

0.0.0.0:8000
# or
http://localhost:8000

Alternatives in Python

python2 -m SimpleHTTPServer 8000
python3 -m http.server 8000