|
|
@ -7,16 +7,17 @@ Note: Unicode may be handled incorrectly (like the browser). |
|
|
|
|
|
|
|
It turns base64-encoded <strong>a</strong>scii data back **to** <strong>b</strong>inary. |
|
|
|
|
|
|
|
(function () { |
|
|
|
"use strict"; |
|
|
|
```javascript |
|
|
|
(function () { |
|
|
|
"use strict"; |
|
|
|
|
|
|
|
var atob = require('atob') |
|
|
|
, b64 = "SGVsbG8gV29ybGQ=" |
|
|
|
, bin = atob(b64) |
|
|
|
; |
|
|
|
var atob = require('atob'); |
|
|
|
var b64 = "SGVsbG8gV29ybGQ="; |
|
|
|
var bin = atob(b64); |
|
|
|
|
|
|
|
console.log(bin); // "Hello World" |
|
|
|
}()); |
|
|
|
console.log(bin); // "Hello World" |
|
|
|
}()); |
|
|
|
``` |
|
|
|
|
|
|
|
### Need Unicode and Binary Support in the Browser? |
|
|
|
|
|
|
|