purescript-base64-codec

Utils for encoding and decoding base64 encoded binary content


License
Unlicense
Install
bower install purescript-base64-codec

Documentation

Module Data.Base64

encodeBase64

encodeBase64 :: ArrayBuffer -> Base64

Encodes an ArrayBuffer into the base64 representation thereof

decodeBase64

decodeBase64 :: Base64 -> Maybe ArrayBuffer

Attempt to decode base64 content to the array buffer(byte) representation it stored internally.

Base64

newtype Base64
  = Base64 String

A boxed Base64 type to prevent accidental misuse

Instances
Eq Base64
Show Base64