Files
30-seconds-of-code/test/btoa/btoa.js
2018-10-03 23:08:31 +02:00

3 lines
94 B
JavaScript

const btoa = str => new Buffer.from(str, 'binary').toString('base64');
module.exports = btoa;