Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/waratuman/elm-coder
- Owner: waratuman
- License: bsd-3-clause
- Created: 2017-08-15T00:09:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-20T20:51:30.000Z (about 2 years ago)
- Last Synced: 2024-10-13T20:21:29.992Z (3 months ago)
- Topics: base16, base32, base64, decoder, decoding, elm, elm-lang, encoder, encoding, rfc4648
- Language: Elm
- Size: 32.2 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
```