/

Base64 string to Node.js Buffer (Node.js 6+)

JavaScriptNode.js

It's just:

javascript
const buf = Buffer.from(b64string, "base64");
Edit this page
Want to make your own site like this? Try gatsby-theme-code-notes by Zander Martineau.
Notes on code. My second brain, by Sal Rahman.