Closed wjhsf closed 2 months ago
Today I learned that node has a utility, domainToASCII, that converts a domain name to ASCII. We can use that in canonicalDomain because we don't need to parse the full URL.
domainToASCII
canonicalDomain
Today I learned that node has a utility,
domainToASCII
, that converts a domain name to ASCII. We can use that incanonicalDomain
because we don't need to parse the full URL.