atob.js/index.js
Victor Costan b35a566ac6 Fix atob to match browser implementations
Test case:
atob('/A==') === String.fromCharCode(252) should be true
2012-09-13 02:15:36 -03:00

10 lines
148 B
JavaScript

(function () {
"use strict";
function atob(str) {
return new Buffer(str, 'base64').toString('binary');
}
module.exports = atob;
}());