Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/waratuman/elm-coder

An encoder and decoder of Base64, Base32, and Base16 for Elm
https://github.com/waratuman/elm-coder

base16 base32 base64 decoder decoding elm elm-lang encoder encoding rfc4648

Last synced: 2 months ago
JSON representation

An encoder and decoder of Base64, Base32, and Base16 for Elm

Awesome Lists containing this project

README

        

# Elm Coder

An encoder and decoder for Base64, Base32 and Base16 (Hexadecimal).

# Example

```elm

import Base32 exposing (decode, encode)

encodeFooBar =
("foobar"
|> String.toList
|> List.map Char.toCode
|> encode
)
== Ok "Zm9vYmFy"

decodeFooBar =
("Zm9vYmFy"
|> decode
|> Result.map (List.map Char.fromCode >> String.fromList)
)
== Ok "foobar"
```