Package-level declarations
Types
Functions
Returns the Punycode ASCII serialization of the domain. If domain is an invalid domain, the empty string is returned.
Returns the Unicode serialization of the domain. If domain is an invalid domain, the empty string is returned.
This function ensures the correct decodings of percent-encoded characters as well as ensuring a cross-platform valid absolute path string.
Like url.fileURLToPath(...) except that instead of returning a string representation of the path, a Buffer is returned. This conversion is helpful when the input URL contains percent-encoded segments that are not valid UTF-8 / Unicode sequences.
This function ensures that path is resolved absolutely, and that the URL control characters are correctly encoded when converting into a File URL.
This utility function converts a URL object into an ordinary options object as expected by the http.request() and https.request() APIs.