Base64 encoding/decoding in pure JS
Browse cluster: JavaScript Standard Style Linting →base64-js is a pure JavaScript library that performs base64 encoding and decoding specifically for binary data in browsers, addressing the limitation that many built-in browser base64 functions only work with text data. The project provides three main functions: byteLength, toByteArray, and fromByteArray, allowing developers to convert between base64 strings and byte arrays. It can be installed via npm for Node.js use or included as a script in web browsers, and is maintained under the MIT license.