UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.

8 lines (7 loc) 278 B
/** * Converts a punycode hostname to its unicode form. * e.g. "xn--mnchen-3ya.example.com" -> "münchen.example.com" * * Returns the original hostname if conversion fails or produces an empty result. */ export declare function hostnameToUnicode(hostname: string): string;