Alternativa de nodo a BTOA
console.log(Buffer.from('Hello World!').toString('base64'));
Cloudy Cow
console.log(Buffer.from('Hello World!').toString('base64'));
console.log(Buffer.from(b64Encoded, 'base64').toString());