# base32-decode

> Base32 decoder with support for multiple variants.

Latest version **1.0.0** (published 2017-12-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install base32-decode
pnpm add base32-decode
yarn add base32-decode
bun add base32-decode
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-12-14 |
| First published | 2016-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | linusu |
| Keywords | base32 decode, base32 decoder, base32, base32hex, crockford, decoder, rfc3548, rfc4648 |

## Links

- npm: https://www.npmjs.com/package/base32-decode
- Repository: https://github.com/LinusU/base32-decode
- Homepage: https://github.com/LinusU/base32-decode#readme
- Issues: https://github.com/LinusU/base32-decode/issues
- npm.io page: https://npm.io/package/base32-decode

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-12-14
- 0.1.1 — 2017-12-14
- 0.1.0 — 2016-08-21

## README

# Base32 Decode

Base32 decoder with support for multiple variants.

## Installation

```sh
npm install --save base32-decode
```

## Usage

```js
const base32Decode = require('base32-decode')

console.log(base32Decode('EHJQ6X0', 'Crockford'))
//=> ArrayBuffer { 4 }

console.log(base32Decode('ORSXG5A=', 'RFC4648'))
//=> ArrayBuffer { 4 }

console.log(base32Decode('EHIN6T0=', 'RFC4648-HEX'))
//=> ArrayBuffer { 4 }
```

## API

### base32Decode(input, variant)

- `input` &lt;String&gt;
- `variant` &lt;String&gt;
- Return: &lt;ArrayBuffer&gt; The decoded raw data

Decode the data in `input`. `variant` should be one of the supported variants
listed below.

- `'RFC3548'` - Alias for `'RFC4648'`
- `'RFC4648'` - [Base32 from RFC4648](https://tools.ietf.org/html/rfc4648)
- `'RFC4648-HEX'` - [base32hex from RFC4648](https://tools.ietf.org/html/rfc4648)
- `'Crockford'` - [Crockford's Base32](http://www.crockford.com/wrmg/base32.html)

## See also

- [base32-encode](https://github.com/LinusU/base32-encode) - Base32 encoder

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