Download server.js from Hakidev/x-nikka: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/spaces/Hakidev/x-nikka/resolve/main/server.js
- Command line
-
hf download hf://spaces/Hakidev/x-nikka/server.js
-
curl -L -o server.js https://huggingface.co/spaces/Hakidev/x-nikka/resolve/main/server.js
312 Bytes
| import http from 'http'; | |
| const server = http.createServer((req, res) => { | |
| res.writeHead(200, { 'Content-Type': 'text/html' }); | |
| res.end('<html><body><b><marquee>KING HAKI</marquee></b></body></html>'); | |
| }); | |
| const PORT = 7860; | |
| server.listen(PORT, () => { | |
| console.log(`Server listening on port ${PORT}`); | |
| }); |