atob.js/README.md

31 lines
663 B
Markdown
Raw Normal View History

2012-09-19 20:22:55 +00:00
atob
===
Uses `Buffer` to emulate the exact functionality of the browser's atob.
Note: Unicode may be handled incorrectly (like the browser).
2014-05-20 14:58:52 +00:00
It turns base64-encoded <strong>a</strong>scii data back **to** <strong>b</strong>inary.
2012-09-19 20:22:55 +00:00
(function () {
"use strict";
2015-12-12 00:30:03 +00:00
2012-09-19 20:22:55 +00:00
var atob = require('atob')
, b64 = "SGVsbG8gV29ybGQ="
, bin = atob(b64)
;
console.log(bin); // "Hello World"
}());
2014-05-20 14:53:39 +00:00
2015-12-12 00:30:03 +00:00
LICENSE
=======
Code copyright 2012-2015 AJ ONeal
2014-05-20 14:53:39 +00:00
2015-12-12 00:30:03 +00:00
Dual-licensed MIT and Apache-2.0
2014-05-20 14:53:39 +00:00
2015-12-12 00:30:03 +00:00
Docs copyright 2012-2015 AJ ONeal
2014-05-20 14:53:39 +00:00
Docs released under [Creative Commons](https://github.com/node-browser-compat/atob/blob/master/LICENSE.DOCS).