Files
30-seconds-of-code/test/btoa/btoa.js
2018-01-18 20:09:27 +00:00

2 lines
88 B
JavaScript

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