Skip to content

Instantly share code, notes, and snippets.

@mvrilo
Created August 18, 2010 12:09
Show Gist options
  • Save mvrilo/534489 to your computer and use it in GitHub Desktop.
Save mvrilo/534489 to your computer and use it in GitHub Desktop.
var buffer = require('buffer').Buffer;
function base64(str) {
new buffer(str).toString('base64');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment