MCPcopy Index your code
hub / github.com/nodejs/node / toUnicode

Function toUnicode

lib/punycode.js:401–407  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

399 * string.
400 */
401const toUnicode = function(input) {
402 return mapDomain(input, function(string) {
403 return regexPunycode.test(string)
404 ? decode(string.slice(4).toLowerCase())
405 : string;
406 });
407};
408
409/**
410 * Converts a Unicode string representing a domain name or an email address to

Callers

nothing calls this directly

Calls 4

mapDomainFunction · 0.85
decodeFunction · 0.70
sliceMethod · 0.65
testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…