newlandsvalley/elm-binary-base64/1.0.2

NOTE: this package is not compatible with Elm 0.19.1

BinaryBase64

Library for encoding Binary to Base64 and vice-versa,

Definition

Data Types

type alias Octet =
Int

an 8-bit word masquerading as an Int - we don't have an elm Byte type yet

type alias ByteString =
List Octet

a ByteString - a list of Octets

Functions

encode : ByteString -> String

encode a ByteString as Base64

decode : String -> Result String ByteString

decode a Base64 String