Skip to main content
ucs2.decode - punycode - Node documentation
method ucs2.decode

Usage in Deno

import { type ucs2 } from "node:punycode";
ucs2.decode(string: string): number[]
Deprecated

since v7.0.0 The version of the punycode module bundled in Node.js is being deprecated. In a future major version of Node.js this module will be removed. Users currently depending on the punycode module should switch to using the userland-provided Punycode.js module instead.

Parameters

string: string

Return Type

number[]