Decodes a string of data which has been encoded using base-64 encoding.
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');
atob('Zm9vYmFy'); // 'foobar'
JavaScript, Node
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.
JavaScript, Node
Creates a hash for a value using the SHA-256 algorithm. Returns a promise.
JavaScript, Node
Adds special characters to text to print in color in the console (combined with console.log()
).