Skip to main content

decode

function decode
Jump to headingdecode(string: string): string

The punycode.decode() method converts a Punycode string of ASCII-only characters to the equivalent string of Unicode codepoints.

punycode.decode('maana-pta'); // 'mañana'
punycode.decode('--dqo34k'); // '☃-⌘'

Parameters Jump to heading

Jump to headingstring: string

Return Type Jump to heading

string
Back to top