Creates a validated URI from a string.
Validates URIs according to RFC 3986, restricting identifiers to ASCII characters only. For non-absolute variants, normalizes paths by removing . segments and resolving .. segments.
.
..
The value to convert to a URI
The identifier variant to validate against (default: "relative")
"relative"
The validated and normalized URI
TypeError If the value is not a string
RangeError If the value is not a valid ASCII-only URI for the specified variant, or if .. segments would climb above the root
Creates a validated URI from a string.
Validates URIs according to RFC 3986, restricting identifiers to ASCII characters only. For non-absolute variants, normalizes paths by removing
.segments and resolving..segments.