-
-
Save rightfold/3eb10ca270a96b5ef23c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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