Created
March 5, 2019 12:02
-
-
Save hcz/d1f885cb41c3ecdb65ff38307c5f72ea to your computer and use it in GitHub Desktop.
Node.js ponyfill for atob and btoa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const atob = a => new Buffer(a, 'base64').toString('binary'); | |
| const btoa = b => new Buffer(b).toString('base64'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment