Skip to content

Instantly share code, notes, and snippets.

@rightfold
Created January 5, 2015 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rightfold/3eb10ca270a96b5ef23c to your computer and use it in GitHub Desktop.
Save rightfold/3eb10ca270a96b5ef23c to your computer and use it in GitHub Desktop.
// import "http" as http;
//
// def handleRequest(request, response) =
// response.end("Hello, world!");
//
// def main() =
// http.createServer(handleRequest).listen(1337);
var $lasagnascript$module = module.exports;
var http = require('http');
$lasagnascript$module.handleRequest = function (request, response) {
return response.end('Hello, world!');
};
$lasagnascript$module.main = function () {
return http.createServer($lasagnascript$module.handleRequest).listen(1337);
};
$lasagnascript$module.main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment