/elm-base64

Primary LanguageElmMIT LicenseMIT

Elm-Base64

Build Status

A base 64 encoding and decoding library for Elm.

Usage

Add the import to the elm module where you want to do some base64 en- or decoding.

import Base64

To decode a String use

decode : String -> Result String String
decode encodedString = Base64.decode encodedString

To encode a String use

encode : String -> String
encode regularString = Base64.encode regularString