Skip to content

Instantly share code, notes, and snippets.

View Martlark's full-sized avatar

Andrew Rowe Martlark

View GitHub Profile
@Martlark
Martlark / static_server.js
Last active September 3, 2015 02:55 — forked from ryanflorence/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument. With file change detection. Requirements: npm install websocket. To use. place in head of your html files <meta detection-change="true"> so that it will auto refresh if any served files change.
/*
node js static web server with file change detection
based upon
https://gist.github.com/ryanflorence/701407
by Andrew Rowe 2015.
requirements.
=============
npm install websocket