base64-js
base64-js copied to clipboard
Base64 encoding/decoding in pure JS
Hi, I had added ppc64le(Linux on Power) architecture support on travis-ci in the PR and looks like its been successfully added. I believe it is ready for the final review...
There are a bunch of modules on npm that do this already, but it seems like most of them depend on another module (sometimes buffer itself) and then add regex...
Performance improvements: - Pre-allocating arrays in `encodeChunk()` and `fromByteArray()` - Removing unnecessary operations, e.g. increments of a variable that is never used again - Using bitwise operators (e.g. `& 3`...
A valid base64 input length including characters not in the base64 alphabet lead to wrong outputs instead of an exception. E.g. ``` $ node > var base64js = require('base64-js') >...
Considering this package has essentially had no activity for over 3 years, I am willing to take over maintainership/ownership of it. We are using this library in the Keycloak project,...
### Description Code ``` const base64String = 'ewogICJhIiA6ICIxIgp9'; var base64js = require('base64-js'); const arrayBuffer = base64js.toByteArray(base64String).buffer; console.log('=============='); console.log(arrayBuffer); console.log('=============='); ``` **In React-native** Print: ``` ============== [] ============== ``` package.json: ```...
my error  my code: line 42 
After 4 days fiddleing wit build in base 64 and thinkig about a psyhologist it helps me really out :) I was ajax fetching images as binary and want to...