Last active
January 2, 2016 09:38
-
-
Save dannycroft/8284154 to your computer and use it in GitHub Desktop.
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
| var base64 = exports; | |
| base64.encode = function (unencoded) { | |
| return new Buffer(unencoded || '').toString('base64'); | |
| }; | |
| base64.decode = function (encoded) { | |
| return new Buffer(encoded || '', 'base64').toString('utf8'); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment