Re: [whatwg/url] IDNA Utils (#274)

```javascript
const host = new URLHost(rawInput)
host.toString() // probably ASCII, as per usual
host.unicode() // ToUnicode?
host.type // "ipv4", "ipv6", "domain"
```
Alternatively you could make ToUnicode an argument to `toString()` somehow, similar to https://tc39.github.io/ecma262/#sec-number.prototype.tostring. Not sure if that's a precedent to follow however.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/274#issuecomment-286699445

Received on Wednesday, 15 March 2017 10:19:36 UTC