The punycode.encode() method converts a string of Unicode codepoints to a Punycode string of ASCII-only characters.
punycode.encode()
punycode.encode('mañana'); // 'maana-pta'punycode.encode('☃-⌘'); // '--dqo34k'
Generated using TypeDoc
The
punycode.encode()
method converts a string of Unicode codepoints to a Punycode string of ASCII-only characters.