CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-punycode

A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.

93

1.17x

Quality

Pending

Does it follow best practices?

Impact

93%

1.17x

Average score across 10 eval scenarios

Overview
Eval results
Files

task.mdevals/scenario-9/

ASCII Domain Converter

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.

Capabilities

Convert Unicode domains

  • "mañana.com" becomes "xn--maana-pta.com" @test
  • "δοκιμή。com" normalizes legacy separators and converts to "xn--jxalpdlp.com" @test

Convert email domains

  • "info@bücher.example" becomes "info@xn--bcher-kva.example" while keeping the local part intact @test

Preserve ASCII inputs

Implementation

@generates

API

export function toAsciiAddress(input);

Dependencies { .dependencies }

punycode { .dependency }

Provides conversion utilities for domain and email data.

Install with Tessl CLI

npx tessl i tessl/npm-punycode

tile.json