# bazinga64

> Base64 encoding and decoding with ASCII string representation.

Latest version **6.5.13** (published 2026-01-21) · GPL-3.0 license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 6.5.13 |
| Published | 2026-01-21 |
| First published | 2016-07-06 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 57.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 69 |
| Maintainers | wireapp-owner, wireapp-member, adrianweiss_wire, virgilegirardin_wire, immadjabbar_wire, typfel, istankovic, bennycode |
| Keywords | array, ascii, base64, browsers, buffer, decode, decoding, encode, encoding, nodejs, string |

## Links

- npm: https://www.npmjs.com/package/bazinga64
- Repository: https://github.com/wireapp/wire-web-packages.git#main
- Homepage: https://github.com/wireapp/wire-web-packages/tree/main#readme
- Issues: https://github.com/wireapp/wire-web-packages/issues
- npm.io page: https://npm.io/package/bazinga64

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

- 6.5.13 (latest) — 2026-01-21
- 6.5.8-beta.54.5ce5ca523 (beta) — 2025-11-24
- 6.3.10 (hotfix) — 2024-10-14
- 6.5.12 — 2026-01-20
- 6.5.11 — 2026-01-20
- 6.5.10 — 2026-01-11
- 6.5.9 — 2026-01-04
- 6.5.8 — 2025-12-02
- 6.5.7 — 2025-10-30
- 6.5.6 — 2025-10-23
- 6.5.3 — 2025-10-06
- 6.5.2 — 2025-09-25
- 6.5.1 — 2025-08-05
- 6.5.0 — 2025-06-12
- 6.4.1 — 2025-06-06
- … 253 more at https://npm.io/package/bazinga64/versions

## README

# Wire

This repository is part of the source code of Wire. You can find more information at [wire.com](https://wire.com) or by contacting opensource@wire.com.

You can find the published source code at [github.com/wireapp](https://github.com/wireapp).

For licensing information, see the attached LICENSE file and the list of third-party licenses at [wire.com/legal/licenses/](https://wire.com/legal/licenses/).

## Installation

```
yarn add bazinga64
```

```
npm -i bazinga64
```

```javascript
const bazinga64 = require('bazinga64');
```

### Development

```
yarn
yarn dist
```

### Usage

```javascript
// Encoding
const encoded = bazinga64.Encoder.toBase64('Hello');
const base64 = encoded.asString;
console.log(base64); // "SGVsbG8="
```

```javascript
// Decoding
const decoded = bazinga64.Decoder.fromBase64('SGVsbG8=');
const text = decoded.asString;
console.log(text); // "Hello"
```

### TypeScript Usage

```typescript
import {Decoder} from 'bazinga64';
const typedArray: Uint8Array = Decoder.fromBase64('SGVsbG8=').asBytes;
```

## API

### `Decoder`

- `fromBase64`

### `Encoder`

- `toBase64`
- `toBase64Url`

### `Converter`

- `arrayBufferViewToString`
- `arrayBufferViewToStringUTF8`
- `arrayBufferViewToBaselineString`
- `jsonToArrayBufferView`
- `numberArrayToArrayBufferView`
- `stringToArrayBufferViewUTF16`
- `stringToArrayBufferViewUTF8`
- `hexStringToArrayBufferView`
- `toArrayBufferView`
- `toString`

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