docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Create a utility that turns domain names or email addresses containing encoded Punycode labels into Unicode-friendly strings while leaving ordinary ASCII content untouched.
xn--bcher-kva.example.com) to Unicode while leaving ASCII labels unchanged. @testinfo@xn--caf-dma.com -> info@café.com). @testxn--invalid!) instead of silently returning input. @testexport function decodeDomain(input) {
/**
* Converts domain names or email addresses containing encoded labels into Unicode strings.
*
* @param {string} input - Domain name or email address to process.
* @returns {string} Unicode string with encoded labels decoded.
* @throws {RangeError} When encoded labels are invalid.
*/
}Decodes encoded domain labels to Unicode. @satisfied-by