function encode
Jump to headingencode(string: string): string
The punycode.encode()
method converts a string of Unicode codepoints to a Punycode string of ASCII-only characters.
punycode.encode('mañana'); // 'maana-pta'
punycode.encode('☃-⌘'); // '--dqo34k'
Parameters Jump to heading
Jump to headingstring: string
Return Type Jump to heading
string