Repository URL to install this package:
Version:
0.0.2 ▾
|
lib |
test |
package.json |
README.md |
base64-js
does basic base64 encoding/decoding in pure JS. Many browsers already have this functionality, but it is for text data, not all-purpose binary data.
Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.
base64-js
has two exposed functions, toByteArray
and fromByteArray
, which both take a single argument.