Start of main content
Decode Base64 encoded string
Decodes a string of data which has been encoded using base-64 encoding.
- Create a
Buffer for the given string with base-64 encoding.
Buffer.prototype.toString() to return the decoded string.
const atob = str => Buffer.from(str, 'base64').toString('binary');
More like this
Collection · 107 snippets
Creates a base-64 encoded ASCII string from a String object in which each character in the string is treated as a byte of binary data.
Learn how semantic versioning works and how to use it to correctly version your software.
Adds special characters to text to print in color in the console (combined with