Comments (1)
You don't need a library for that.
Buffer.from(b64string, 'base64') // decode to a Buffer
Buffer.from(b64string, 'base64').toString('utf-8') // decode to a string
For browser JS, see https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
from base64url.
Related Issues (20)
- Buffer created without "new" HOT 1
- Node.js v7 Buffer Deprecation Warning HOT 1
- Getting "Syntax error: Variable Buffer has already been declared". HOT 1
- Do not publish global typings to npm HOT 3
- Encoding fails to create a universally decodable base64 string HOT 3
- Please provide a changelog HOT 1
- Security Vulnerability found on base64url HOT 1
- Missing v3.0.0 tag on git repo?
- Missing definition for the types file
- Vunerability "npm audit" HOT 3
- Node 4 throws "Unexpected token" error in `encode` HOT 1
- Buffer is not defined HOT 14
- react-scripts build: Failed to minify the code from this file HOT 3
- Compatibility issue on IE 11 due to default parameters HOT 1
- ES6 target should be replaced by ES5 HOT 1
- Doesnt work with Angular 7 still getting buffer is not defined HOT 3
- Where can I get the javascript source code without npm? HOT 2
- Documentation : browser / React Native compatibility HOT 2
- Deprecate package HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from base64url.