Skip to content

Instantly share code, notes, and snippets.

@reganstarr
Created April 4, 2016 13:28
Show Gist options
  • Save reganstarr/2c9950280fd7f0b512597f2fb733d987 to your computer and use it in GitHub Desktop.
Save reganstarr/2c9950280fd7f0b512597f2fb733d987 to your computer and use it in GitHub Desktop.
var string = "This is a string";
var encodedString = new Buffer(string).toString('base64');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment