atob
atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)
Last updated 6 years ago by coolaj86 .
(MIT OR Apache-2.0) · Repository · Original npm · Tarball · package.json
$ gnpm install atob 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.1.2                                ...           latest (6 years ago)

11 Versions

  • 2.1.2                                ...           6 years ago
  • 2.1.1                                ...           6 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.3                                ...           8 years ago
  • 2.0.2                                ...           8 years ago
  • 2.0.0                                ...           9 years ago
  • 1.1.3                                ...           9 years ago
  • 1.1.2                                ...           10 years ago
  • 1.1.0                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |