# decode-base64

> A tiny function for decoding base64 strings into Uint8Arrays, useful for bundling and loading WASM modules.

Latest version **3.0.2** (published 2025-01-25) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2025-01-25 |
| First published | 2021-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | fabiospampinato |
| Keywords | decode, base64, uint8array, buffer, node, web, browser |

## Links

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

## Dependencies (1)

- [node-buffer-encoding](https://npm.io/package/node-buffer-encoding.md) ^1.0.3

## 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

- 3.0.2 (latest) — 2025-01-25
- 3.0.1 — 2022-04-09
- 3.0.0 — 2022-04-05
- 2.0.0 — 2022-03-25
- 1.0.0 — 2021-06-06

## README

# Decode Base64

A tiny function for decoding base64 strings into Uint8Arrays, useful for bundling and loading WASM modules.

## Install

```sh
npm install decode-base64
```

## Usage

```ts
import decode from 'decode-base64';

// let's decode a base64 string to a Uint8Array

decode ( 'base64 string here...' ); // => Uint8Array
```

## License

MIT © Fabio Spampinato

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