deno/tools/node_http.js

10 lines
250 B
JavaScript
Raw Normal View History

2018-10-19 19:25:29 +00:00
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
2018-10-15 20:44:35 +00:00
const http = require("http");
const port = process.argv[2] || "4544";
console.log("port", port);
http
.Server((req, res) => {
res.end("Hello World\n");
})
.listen(port);