Skip to content

Instantly share code, notes, and snippets.

@marr
Created August 3, 2016 17:06
Show Gist options
  • Save marr/5ea9a40201d110ef9a2905fd5d7e5496 to your computer and use it in GitHub Desktop.
Save marr/5ea9a40201d110ef9a2905fd5d7e5496 to your computer and use it in GitHub Desktop.
encode
Buffer.from("foo").toString("base64")
'Zm9v'
decode:
Buffer.from("Zm9v", "base64").toString()
'foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment