Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/punycode.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.160.0/node/punycode.ts";

Functions

Converts a Punycode string of ASCII-only symbols to a string of Unicode symbols.

Converts a string of Unicode symbols (e.g. a domain name label) to a Punycode string of ASCII-only symbols.

Converts a Unicode string representing a domain name or an email address to Punycode. Only the non-ASCII parts of the domain name will be converted, i.e. it doesn't matter if you call it with a domain that's already in ASCII.

Converts a Punycode string representing a domain name or an email address to Unicode. Only the Punycoded parts of the input will be converted, i.e. it doesn't matter if you call it on a string that has already been converted to Unicode.