Module

std/node/url.ts>domainToASCII

Deno standard library
Go to Latest
function domainToASCII
import { domainToASCII } from "https://dotland.deno.dev/std@0.177.0/node/url.ts";

The url.domainToASCII() takes an arbitrary domain and attempts to convert it into an IDN

Parameters

domain: string

The domain to convert to an IDN