Download server.js from echodict/IPTV-Web-Player: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/datasets/echodict/IPTV-Web-Player/resolve/main/server.js
- Command line
-
hf download hf://datasets/echodict/IPTV-Web-Player/server.js
-
curl -L -o server.js https://huggingface.co/datasets/echodict/IPTV-Web-Player/resolve/main/server.js
418 Bytes
| const express = require('express'); | |
| const path = require('path'); | |
| const app = express(); | |
| const PORT = process.env.PORT || 3000; | |
| // 设置静态文件目录 | |
| app.use(express.static(path.join(__dirname, '/'))); | |
| // 启动服务 | |
| app.listen(PORT, () => { | |
| console.log(`Server is running on http://localhost:${PORT}`); | |
| console.log(`Open http://localhost:${PORT} in your browser to view the site.`); | |
| }); | |