We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc7e0c commit 8f5980aCopy full SHA for 8f5980a
index.js
@@ -1,10 +1,11 @@
1
2
const
3
- http = require("http");
+ http = require("http"),
4
+ os = require("os");
5
6
const server = http.createServer((request, response) => {
7
response.writeHead(200, {"Content-Type": "text/plain"});
- response.end("Hello World! Machine");
8
+ response.end(`Hello World! Machine: ${os.hostname()}, Type: ${os.type()}`);
9
});
10
11
const port = process.env.PORT || 1337;
0 commit comments