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