Url
import { getHostname, getQueryParams, isValidUrl } from '@rtorcato/js-common/url'
Exports
| Name | Summary |
|---|---|
getHostname | Gets the hostname from a URL string. |
getQueryParams | Gets the query parameters from a URL as an object. |
isValidUrl | Checks if a string is a valid URL. |
joinUrl | Joins multiple URL segments into a single URL, ensuring proper slashes. |
removeQueryParam | Removes a query parameter from a URL. |
setQueryParam | Adds or updates a query parameter in a URL. |