A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.
93
Quality
Pending
Does it follow best practices?
Impact
93%
1.17xAverage score across 10 eval scenarios
Create a utility that turns domain names or email addresses into ASCII-safe form while leaving already-ASCII content unchanged. When an @ is present, only convert the domain portion; the local part must be preserved verbatim. Repeated calls on already-converted input should not alter the result further.
@generates
export function toAsciiAddress(input);Provides conversion utilities for domain and email data.
Install with Tessl CLI
npx tessl i tessl/npm-punycodedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10