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

std/node/internal/idna.ts>toUnicode

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function toUnicode
import { toUnicode } from "https://deno.land/std@0.172.0/node/internal/idna.ts";

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.

Parameters

input: string

The Punycoded domain name or email address to convert to Unicode.