# atob

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

Latest version **2.1.2** (published 2018-08-18) · (MIT OR Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install atob
pnpm add atob
yarn add atob
bun add atob
```

Provides the command `atob`.

## Health

**Score 18/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2018-08-18 |
| First published | 2011-09-09 |
| Weekly downloads | 0 |
| License | (MIT OR Apache-2.0) |
| TypeScript types | separate (@types/atob) |
| Module format | CommonJS |
| Node | >= 4.5.0 |
| Dependencies | 0 |
| Unpacked size | 35.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | AJ ONeal |
| Maintainers | coolaj86 |
| Keywords | atob, browser |

## Links

- npm: https://www.npmjs.com/package/atob
- Repository: https://git.coolaj86.com/coolaj86/atob.js
- Homepage: https://git.coolaj86.com/coolaj86/atob.js.git
- npm.io page: https://npm.io/package/atob

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.1.2 (latest) — 2018-08-18
- 2.1.1 — 2018-04-27
- 2.1.0 — 2018-03-28
- 2.0.3 — 2016-04-09
- 2.0.2 — 2016-04-09
- 2.0.0 — 2015-12-12
- 1.1.3 — 2015-12-12
- 1.1.2 — 2014-05-20
- 1.1.0 — 2012-09-19
- 1.0.1 — 2012-06-26
- 1.0.0 — 2011-09-09

## README

atob
===

| **atob**
| [btoa](https://git.coolaj86.com/coolaj86/btoa.js)
| [unibabel.js](https://git.coolaj86.com/coolaj86/unibabel.js)
| Sponsored by [ppl](https://ppl.family)

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');
  var b64 = "SGVsbG8sIFdvcmxkIQ==";
  var bin = atob(b64);

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

### Need Unicode and Binary Support in the Browser?

Check out [unibabel.js](https://git.coolaj86.com/coolaj86/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](https://git.coolaj86.com/coolaj86/atob.js/blob/master/LICENSE.DOCS).

---
_Source: https://npm.io/package/atob · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
