# b3b

> ArrayBuffer / Buffer / base64 convert util

Latest version **0.0.1** (published 2015-01-27) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2015-01-27 |
| First published | 2015-01-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | junmer |
| Maintainers | junmer |
| Keywords | ArrayBuffer, Buffer, base64 |

## Links

- npm: https://www.npmjs.com/package/b3b
- Repository: https://github.com/junmer/b3b
- Issues: https://github.com/junmer/b3b/issues
- npm.io page: https://npm.io/package/b3b

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

- 0.0.1 (latest) — 2015-01-27

## README

# b3b

buffer convert util

### convert map

```
ArrayBuffer -------- Buffer
\                      /
 \                    /
   ----  base64  -----
```

### api

- #### <a href="index.js?source#L7" target="_blank"><b>0</b></a>

  - **<u>file</u>**: 

    buffer convert util

  - **<u>author</u>**: 

    junmer

  - **<u>description</u>**: 

    ArrayBuffer / Buffer / base64 convert util

- #### <a href="index.js?source#L16" target="_blank"><b>ab2b (alias: arrayBufferToBuffer ) </b></a>
  convert arrayBuffer to buffer

  - **<u>param</u>**: `ab` { _ArrayBuffer_ }

    arrayBuffer

  - **<u>return</u>**: { _buffer_ }

    buffer

- #### <a href="index.js?source#L36" target="_blank"><b>b2ab (alias: bufferToArrayBuffer ) </b></a>
  convert buffer to arrayBuffer

  - **<u>param</u>**: `buffer` { _buffer_ }

    buffer

  - **<u>return</u>**: { _ArrayBuffer_ }

    arrayBuffer

- #### <a href="index.js?source#L56" target="_blank"><b>a2b (alias: base64ToBuffer ) </b></a>
  convert base64 string to buffer

  - **<u>param</u>**: `str` { _string_ }

    base64 string

  - **<u>return</u>**: { _Buffer_ }

    buffer

- #### <a href="index.js?source#L67" target="_blank"><b>b2a (alias: bufferToBase64 ) </b></a>
  convert buffer to base64 string

  - **<u>param</u>**: `str` { _string|Buffer_ }

    string or buffer

  - **<u>return</u>**: { _string_ }

    base64 string

- #### <a href="index.js?source#L87" target="_blank"><b>b2b (alias: bytesToBase64 ) </b></a>
  convert arraybuffer to base64 string

  - **<u>param</u>**: `ab` { _ArrayBuffer|Array_ }

    ArrayBuffer or Array

  - **<u>return</u>**: { _string_ }

    base64 string

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