Download api/server/utils/removePorts.js from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 62 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/server/utils/removePorts.js
- Command line
-
hf download hf://spaces/Zhitomir/chat/api/server/utils/removePorts.js
-
curl -L -o removePorts.js https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/server/utils/removePorts.js
62 Bytes
| module.exports = (req) => req?.ip?.replace(/:\d+[^:]*$/, ''); | |