Package-level declarations
Types
Functions
Link copied to clipboard
Returns the Punycode ASCII serialization of the domain
. If domain
is an invalid domain, the empty string is returned.
Link copied to clipboard
Returns the Unicode serialization of the domain
. If domain
is an invalid domain, the empty string is returned.
Link copied to clipboard
This function ensures the correct decodings of percent-encoded characters as well as ensuring a cross-platform valid absolute path string.
Link copied to clipboard
This function ensures that path
is resolved absolutely, and that the URL control characters are correctly encoded when converting into a File URL.
Link copied to clipboard
This utility function converts a URL object into an ordinary options object as expected by the http.request()
and https.request()
APIs.