Created
January 13, 2019 08:13
-
-
Save BirkhoffLee/461d00c878d0228cfca7e7357d8238e2 to your computer and use it in GitHub Desktop.
base64 in nodejs
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 encode = s => Buffer.from(s).toString('base64') | |
const decode = s => Buffer.from(s, 'base64').toString() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment