node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey ยป


Simple Static Web Server

A simple static webserver for local hosting. Ideal for development.

Git clone and install globally...

To Install:

npm install staticserver -g

To Run:

From the directory you want to run:

Optional Args:

-p <port> - for manual port (default to 8000)
-c <true | false> - turn cahce on/off (default true)
-d <path> - Run from a different dir
-l <true | false> - show directory listing
-x <domains seperated by coma> - Allow cross domain requests from named origin CORS
-h - help
--help - the police