atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)
Go to file
Michael Theos 34dd70eb8d Range check for b64 Alphabet 2021-03-12 00:27:22 +11:00
bin separate node use case from browser use case 2015-12-11 16:52:45 -08:00
LICENSE (MIT OR Apache-2.0) 2015-12-11 16:30:03 -08:00
LICENSE.DOCS satisfying the money-hungry lawyers... 2014-05-20 08:53:39 -06:00
README.md v2.1.0 2018-03-27 22:26:00 -06:00
bower.json remove version (should rely on tags instead) 2018-08-18 10:17:02 +00:00
browser-atob.js v2.1.0 2018-03-27 22:26:00 -06:00
node-atob.js Range check for b64 Alphabet 2021-03-12 00:26:12 +11:00
package.json v2.1.2: remove version field from bower 2018-08-18 04:18:47 -06:00
test.js Range check for b64 Alphabet 2021-03-12 00:27:22 +11:00

README.md

atob

| atob | btoa | unibabel.js | Sponsored by ppl

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 ascii data back to binary.

(function () {
  "use strict";

  var atob = require('atob');
  var b64 = "SGVsbG8sIFdvcmxkIQ==";
  var bin = atob(b64);

  console.log(bin); // "Hello, World!"
}());

Need Unicode and Binary Support in the Browser?

Check out unibabel.js

Changelog

  • v2.1.0 address a few issues and PRs, update URLs
  • v2.0.0 provide browser version for ios web workers
  • v1.2.0 provide (empty) browser version
  • v1.1.3 add MIT license
  • v1.1.2 node only

LICENSE

Code copyright 2012-2018 AJ ONeal

Dual-licensed MIT and Apache-2.0

Docs copyright 2012-2018 AJ ONeal

Docs released under Creative Commons.