Download node_modules/axios/lib/helpers/combineURLs.js from kirimdata369/task-manager-pro: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/kirimdata369/task-manager-pro/resolve/main/node_modules/axios/lib/helpers/combineURLs.js
- Command line
-
hf download hf://spaces/kirimdata369/task-manager-pro/node_modules/axios/lib/helpers/combineURLs.js
-
curl -L -o combineURLs.js https://huggingface.co/spaces/kirimdata369/task-manager-pro/resolve/main/node_modules/axios/lib/helpers/combineURLs.js
382 Bytes
| ; | |
| /** | |
| * Creates a new URL by combining the specified URLs | |
| * | |
| * @param {string} baseURL The base URL | |
| * @param {string} relativeURL The relative URL | |
| * | |
| * @returns {string} The combined URL | |
| */ | |
| export default function combineURLs(baseURL, relativeURL) { | |
| return relativeURL | |
| ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') | |
| : baseURL; | |
| } | |