Download web/client/node_modules/axios/lib/helpers/parseProtocol.js from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 151 Bytes
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/axios/lib/helpers/parseProtocol.js
- Command line
-
hf download hf://spaces/amitesh11/pose/web/client/node_modules/axios/lib/helpers/parseProtocol.js
-
curl -L -o parseProtocol.js https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/axios/lib/helpers/parseProtocol.js
151 Bytes
| ; | |
| export default function parseProtocol(url) { | |
| const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); | |
| return match && match[1] || ''; | |
| } | |