base64 icon indicating copy to clipboard operation
base64 copied to clipboard

A robust base64 encoder/decoder that is fully compatible with `atob()` and btoa()`, written in JavaScript.

Results 12 base64 issues
Sort by recently updated
recently updated
newest added

A topic for discussion: this repo very closely resembles [`atob`](https://git.coolaj86.com/coolaj86/atob.js/src/branch/master/node-atob.js) and [`btoa`](https://git.coolaj86.com/coolaj86/btoa.js) I find myself in a pickle when deciding which library to use - `atob` and `btoa` seem attractive...

Hi. We've had the same problem as the OP from https://github.com/mathiasbynens/base64/issues/19 Here's a fix. All tests passing. Could you merge this in and release a new version to npm?

Hi, is there a way to contribute to this library?, AKA if I make a pull request will it be tested and merged or rejected?

Apparently the library fails when using against a large image (>6MB) ``` (node:14571) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded at RegExp.test () ``` My advise is not to use...

When try to complie base86.sol in Uniswap v3 . solidity version 0.7.6 Complie Error comes up with : > Compiling base64-sol/base64.sol **CompilerError: Stack too deep when compiling inline assembly: Variable...

Error when trying to encode Vietnamese chars > InvalidCharacterError > at /home/runner/invalidlatin/node_modules/base-64/base64.js:23:36 > at Object. (/home/runner/invalidlatin/node_modules/base-64/base64.js:165:2) > at Module._compile (internal/modules/cjs/loader.js:1133:30) > at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10) > at Module.load (internal/modules/cjs/loader.js:977:32) > at...

var encoded = 'Zm9vIMKpIGJhciDwnYyGIGJheg=='; var bytes = base64.decode(encoded); var text = utf8.decode(bytes); console.log(text); output Invalid UTF-8 detected

![image](https://user-images.githubusercontent.com/43527087/71561285-74bb8d00-2a9a-11ea-9950-2c8b3def122f.png)

Hello, I am using this package in a React Native app. The problem is that while using the Hermes Engine the string concatenation with `+=` is very slow. With this...

Hi, I am trying to run the test cases with npm on my system, and each item I am facing this issue, the system does not proceed further from this....