Skip to main content
decode - node__punycode.d.ts - Node documentation
function decode

Usage in Deno

```typescript import { decode } from "node:node__punycode.d.ts"; ```
decode(string: string): string
The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only characters to the equivalent string of Unicode codepoints. ```js punycode.decode('maana-pta'); // 'mañana' punycode.decode('--dqo34k'); // '☃-⌘' ```

Parameters

string: string

Return Type

string