Files
30-seconds-of-code/test/btoa/btoa.js
2018-10-04 12:58:44 +02:00

3 lines
90 B
JavaScript

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