Skip to content

Instantly share code, notes, and snippets.

@ben-ng ben-ng/simple.js
Created Mar 14, 2014

Embed
What would you like to do?
var http = require('http')
, fs = require('fs');
http.createServer(function(request, response){
response.writeHead(200, {'Content-Type': 'text/html' });
fs.createReadStream('index.html').pipe(response);
}).listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.