tasuki/elm-punycode/1.1.0

NOTE: the latest version is 1.2.1

Punycode

Punycode is a Unicode encoding used for internationalized domain names.

Decoding

decode : String -> String

Decodes a Punycode-encoded string into Unicode.

import Punycode


Punycode.decode "bcher-kva" == "bücher"
decodeIdn : String -> String

Decodes an internationalized domain name into Unicode.

import Punycode


Punycode.decodeIdn "www.xn--bcher-kva.example" == "www.bücher.example"