Buffer
for the given string with base-64 encoding and use Buffer.toString('binary')
to return the decoded string.const atob = str => Buffer.from(str, 'base64').toString('binary');
atob('Zm9vYmFy'); // 'foobar'
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️