Skip to main content
ucs2.encode - node__punycode.d.ts - Node documentation
method ucs2.encode

Usage in Deno

```typescript import { type ucs2 } from "node:node__punycode.d.ts"; ```
ucs2.encode(codePoints: readonly number[]): string
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

codePoints: readonly number[]

Return Type

string