Skip to content

Instantly share code, notes, and snippets.

@chadaustin
Created October 26, 2015 15:22
Show Gist options
  • Select an option

  • Save chadaustin/0fc7edbc4fc388524073 to your computer and use it in GitHub Desktop.

Select an option

Save chadaustin/0fc7edbc4fc388524073 to your computer and use it in GitHub Desktop.
(function (){
var True = true;
var False = false;
var require1 = (function (){
var $0 = require;
return $0;
}
)();
var http = (function (){
var $1 = require1("http");
return $1;
}
)();
var console = (function (){
var $2 = require1("console");
return $2;
}
)();
var PORT = (function (){
return 8080;
}
)();
function handleRequest(request,response){
var $3 = (response).end("It Works!!");
return (void 0);
}
var server = (function (){
var $4 = (http).createServer(handleRequest);
return $4;
}
)();
var _ = (function (){
var $6 = (server).listen(PORT, (function (){
var $5 = (console).log("Server listening on: http://localhost:%s", PORT);
return $5;
}
));
return $6;
}
)();
}
)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment