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/fb26dc8decbf6fbcdf145aa5f9debd7eca5cae35/scripts/node_modules/axios/lib/helpers/parseProtocol.js
- Command line
-
hf download hf://techprotrade/annator@fb26dc8decbf6fbcdf145aa5f9debd7eca5cae35/scripts/node_modules/axios/lib/helpers/parseProtocol.js
-
curl -L -o parseProtocol.js https://huggingface.co/techprotrade/annator/resolve/fb26dc8decbf6fbcdf145aa5f9debd7eca5cae35/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]) || ''; | |
| } | |