The punycode.decode() method converts a Punycode string of ASCII-only characters to the equivalent string of Unicode codepoints.
The punycode.decode() method converts a Punycode string of ASCII-only characters to the equivalent string of Unicode codepoints.
a Punycode string of ASCII-only characters
the equivalent string of Unicode codepoints.
The punycode.encode() method converts a string of Unicode codepoints to a Punycode string of ASCII-only characters.
The punycode.encode() method converts a string of Unicode codepoints to a Punycode string of ASCII-only characters.
a string of Unicode codepoints
a Punycode string of ASCII-only characters.
The punycode.toASCII() method converts a Unicode string representing an Internationalized Domain Name to Punycode.
The punycode.toASCII() method converts a Unicode string representing an Internationalized Domain Name to Punycode. Only the non-ASCII parts of the domain name will be converted. Calling punycode.toASCII() on a string that already only contains ASCII characters will have no effect.
the domain name
a Unicode string representing an Internationalized Domain Name as Punycode
The punycode.toUnicode() method converts a string representing a domain name containing Punycode encoded characters into Unicode.
The punycode.toUnicode() method converts a string representing a domain name containing Punycode encoded characters into Unicode. Only the Punycode encoded parts of the domain name are be converted.
a string representing a domain name containing Punycode encoded characters
the Unicode string
The UCS2 object
Returns a string identifying the current Punycode.js version number.
Returns a string identifying the current Punycode.js version number.
a string identifying the current Punycode.js version number.