Spaces:
Paused
Paused
Download server.js from mikmc/Internet_Archive: direct link, hf CLI and curl.
- Browser
- Download file 220 Bytes
-
https://huggingface.co/spaces/mikmc/Internet_Archive/resolve/main/server.js
- Command line
-
hf download hf://spaces/mikmc/Internet_Archive/server.js
-
curl -L -o server.js https://huggingface.co/spaces/mikmc/Internet_Archive/resolve/main/server.js
220 Bytes
| const { serveHTTP } = require('stremio-addon-sdk') | |
| const Server = (builder) => { | |
| const serve = ({ port }) => { | |
| serveHTTP(builder.getInterface(), { port }) | |
| } | |
| return { | |
| serve, | |
| } | |
| } | |
| module.exports = Server | |