atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)

npm install atob
82 downloads in the last day
459 downloads in the last week
1 863 downloads in the last month


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')
    , b64 = "SGVsbG8gV29ybGQ="
    , bin = atob(b64)

  console.log(bin); // "Hello World"
npm loves you