wallet-core/node_modules/atob/README.md

50 lines
1.1 KiB
Markdown
Raw Normal View History

2017-08-14 05:01:11 +02:00
atob
===
2018-09-20 02:56:13 +02:00
| **atob**
| [btoa](https://git.coolaj86.com/coolaj86/btoa.js)
| [unibabel.js](https://git.coolaj86.com/coolaj86/unibabel.js)
| Sponsored by [ppl](https://ppl.family)
2017-08-14 05:01:11 +02:00
Uses `Buffer` to emulate the exact functionality of the browser's atob.
Note: Unicode may be handled incorrectly (like the browser).
It turns base64-encoded <strong>a</strong>scii data back **to** <strong>b</strong>inary.
```javascript
(function () {
"use strict";
var atob = require('atob');
2018-09-20 02:56:13 +02:00
var b64 = "SGVsbG8sIFdvcmxkIQ==";
2017-08-14 05:01:11 +02:00
var bin = atob(b64);
2018-09-20 02:56:13 +02:00
console.log(bin); // "Hello, World!"
2017-08-14 05:01:11 +02:00
}());
```
### Need Unicode and Binary Support in the Browser?
2018-09-20 02:56:13 +02:00
Check out [unibabel.js](https://git.coolaj86.com/coolaj86/unibabel.js)
2017-08-14 05:01:11 +02:00
Changelog
=======
2018-09-20 02:56:13 +02:00
* v2.1.0 address a few issues and PRs, update URLs
2017-08-14 05:01:11 +02:00
* v2.0.0 provide browser version for ios web workers
* v1.2.0 provide (empty) browser version
2018-09-20 02:56:13 +02:00
* v1.1.3 add MIT license
2017-08-14 05:01:11 +02:00
* v1.1.2 node only
LICENSE
=======
2018-09-20 02:56:13 +02:00
Code copyright 2012-2018 AJ ONeal
2017-08-14 05:01:11 +02:00
Dual-licensed MIT and Apache-2.0
2018-09-20 02:56:13 +02:00
Docs copyright 2012-2018 AJ ONeal
2017-08-14 05:01:11 +02:00
2018-09-20 02:56:13 +02:00
Docs released under [Creative Commons](https://git.coolaj86.com/coolaj86/atob.js/blob/master/LICENSE.DOCS).