# b64ab

> Convert between Base-64 Strings and ArrayBuffer Objects. Simple. Isomorphic. Light-weight.

Latest version **0.0.1** (published 2023-05-13) · CC0-1.0 license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-05-13 |
| First published | 2023-05-13 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel J. Dufour |
| Maintainers | danieljdufour |
| Keywords | arraybuffer, base64, base-64, binary, buffer, data, string |

## Links

- npm: https://www.npmjs.com/package/b64ab
- Repository: https://github.com/DanielJDufour/b64ab
- Homepage: https://github.com/DanielJDufour/b64ab#readme
- Issues: https://github.com/DanielJDufour/b64ab/issues
- npm.io page: https://npm.io/package/b64ab

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M 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
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2023-05-13

## README

# b64ab

### install
```js
npm install b64ab
```

### usage
```js
import { toBase64String, toArrayBuffer } from "b64ab";

// create an Array Buffer
const ab = Uint8Array.from([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]).buffer;

// convert an Array Buffer to a Base-64 String
toBase64String(ab);
"AQIDBAUGBwgJCg=="

// convert a Base-64 String to an Array Buffer
toArrayBuffer("AQIDBAUGBwgJCg==")
ArrayBuffer {
  [Uint8Contents]: <01 02 03 04 05 06 07 08 09 0a>,
  byteLength: 10
}
```

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