Skip to content

Instantly share code, notes, and snippets.

View kkleidal's full-sized avatar

Ken Leidal kkleidal

  • Genesis Therapeutics
  • Boston, MA
View GitHub Profile
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
function wrapHTML(html) {
return "<!DOCTYPE html><html><body>" + html + "</body></html>\n";
}
function serveIndex(response, rootPath, localPath, cb) {