blob: 8459ca29c035e75ab1954ce11a5d52da15f88cf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/** https://url.spec.whatwg.org/#idna */
import { sendSync } from "./dispatch_json.ts";
export function domainToAscii(
domain: string,
{ beStrict = false }: { beStrict?: boolean } = {}
): string {
return sendSync("op_domain_to_ascii", { domain, beStrict });
}
|