A very simple static file server. For development use only.
$ npm install spadin/simple-express-static-server
$ ./node_modules/.bin/simple-server my/public/dir
$ sudo npm install -g spadin/simple-express-static-server
$ simple-server my/public/dir
Install dependencies (first time only):
$ npm install
How to start:
$ node server
If you need a different port:
$ PORT=9999 node server
If you need a different hostname:
$ HOSTNAME=192.168.0.1 node server
Code and documentation copyright 2013-2018 Sandro Padin. Code released under the MIT license. Docs released under Creative Commons.