Module

std/node/internal/idna.ts

Deno standard library
Go to Latest
import * as mod from "https://dotland.deno.dev/std@0.146.0/node/internal/idna.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.