import http from "node:http"; const server = http.createServer((req, res) => { res.writeHead(200, { "content-type": "text/html; charset=utf-8" }); res.end(`

Hello from ${req.method} ${req.url} (esm)

`); }); server.listen(3000, () => console.log("listening on 3000"));