Files
30-seconds-of-code/test/btoa/btoa.js
2018-08-02 13:49:33 +03:00

3 lines
89 B
JavaScript

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