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

Function toASCII

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

Source from the content-addressed store, hash-verified

418 * email address.
419 */
420const toASCII = function(input) {
421 return mapDomain(input, function(string) {
422 return regexNonASCII.test(string)
423 ? 'xn--' + encode(string)
424 : string;
425 });
426};
427
428/*--------------------------------------------------------------------------*/
429

Callers 1

url.jsFile · 0.85

Calls 3

mapDomainFunction · 0.85
encodeFunction · 0.70
testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…