Skip to content

HTTPS clone URL

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.
branch: master

Merge pull request #7 from muka/master

Added CLI command
latest commit c1f14cdc86
Sandro Padin authored

README.md

Simple Express Static File Server

Description

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=192.168.0.1 node server

Open http://192.168.0.1:4567

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.