Files: ff03a3ca817dc7d4c3183debf5caa1013fa168b0 / node_modules / base64-js
๐ | .travis.yml |
๐ | LICENSE.MIT |
๐ | README.md |
๐ | bench |
๐ | lib |
๐ | package.json |
๐ | test |
README.md
base64-js
base64-js
does basic base64 encoding/decoding in pure JS.
Many browsers already have base64 encoding/decoding 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.
install
With npm do:
npm install base64-js
methods
var base64 = require('base64-js')
base64
has two exposed functions, toByteArray
and fromByteArray
, which both take a single argument.
toByteArray
- Takes a base64 string and returns a byte arrayfromByteArray
- Takes a byte array and returns a base64 string
license
MIT
Built with git-ssb-web