punycode
Return the Punycode of the given domain if it's non-ASCII.
def punycode(
domain: string
) - > string
Return the Punycode of the given domain if it's non-ASCII.
Parameters
| Name | Type | Description |
|---|---|---|
| domain | string | The domain name string to be encoded into Punycode |
Returns
| Type | Description |
|---|---|
string | The ASCII-compatible Punycode representation of the domain name |