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
| // Simple Base64 encode/decode that works in node and the browser. | |
| var base64 = { | |
| encode: function (text) { | |
| if (typeof btoa === 'function') | |
| return btoa(text) | |
| else | |
| return new Buffer(text).toString('base64') | |
| }, | |
| decode: function (text) { | |
| if (typeof atob === 'function') |
NewerOlder