summaryrefslogtreecommitdiff
path: root/tools/node_http.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_http.js')
-rw-r--r--tools/node_http.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/node_http.js b/tools/node_http.js
new file mode 100644
index 000000000..dbe9de81a
--- /dev/null
+++ b/tools/node_http.js
@@ -0,0 +1,8 @@
+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);