Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple static file server using express.js for node.js. Good when you need a quick file server.
JavaScript HTML
branch: master

Merge pull request #7 from muka/master

Added CLI command
latest commit c1f14cdc86
Sandro Padin authored

Simple Express Static File Server


A very simple static file server. For development use only.

Install dependencies (first time only):

$ npm install

How to start:

$ node server

Open http://localhost:4567

If you need a different port:

$ PORT=9999 node server

Open http://localhost:9999

If you need a different hostname:

$ HOSTNAME= node server


CLI based generic server:

Install as a global module

$ sudo npm install -g spadin/simple-express-static-server

Serve a directory

$ simple-server my/public/dir
Something went wrong with that request. Please try again.