Converts the input into a URL object.
The input to convert into a URL. It can be a URL object, a string, or an object with URL properties.
Optional
The base URL to resolve relative URLs against.
The converted URL object.
Error if the input is not a valid URL.
Generated using TypeDoc
Converts the input into a URL object.