Encoding and decoding of base64 strings for both Node and the browser.
Note: encode64
and decode64
are in general not inverses on the set of all strings.
But you can expect decode64 <<< encode64 <<< encode64 == encode64
on Node.
This delegates to the browser's atob
and btoa
functions, so unicode in particular
may cause unexpected behavior.
bower install purescript-base64