Quoth Felipe Gasper on 10/13/2012 7:40 PM...
> + global.atob = function(text) {
> + var buf = new Buffer(text, "base64");
> + var bytes = [];
> + for ( var i = buf.length; i >= 0; i-- ) {
> + bytes[i] = String.fromCharCode(buf[i]);
> + }
> +
> + return bytes.join("");
> + };
(Ech, I just saw the off-by-one error up there.)
-F
--
Felipe M. L. Gasper
http://felipegasper.com
“Wisdom can never learn enough. Ignorance is sufficient unto itself.”
-Mechtild of Magdeburg
“Dad always thought laughter was the best medicine,
which I guess is why several of us died of tuberculosis.”
-Jack Handey
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en