# tiny-buffer-map

> A very simple map for Buffers

Latest version **1.1.1** (published 2022-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install tiny-buffer-map
pnpm add tiny-buffer-map
yarn add tiny-buffer-map
bun add tiny-buffer-map
```

## 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.1.1 |
| Published | 2022-12-21 |
| First published | 2022-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Andrew Osheroff |
| Maintainers | andrewosh |
| Keywords | buffer, map |

## Links

- npm: https://www.npmjs.com/package/tiny-buffer-map
- Repository: https://github.com/andrewosh/tiny-buffer-map
- Homepage: https://github.com/andrewosh/tiny-buffer-map#readme
- Issues: https://github.com/andrewosh/tiny-buffer-map/issues
- npm.io page: https://npm.io/package/tiny-buffer-map

## Dependencies (1)

- [b4a](https://npm.io/package/b4a.md) ^1.6.0

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

- 1.1.1 (latest) — 2022-12-21
- 1.2.0 — 2023-11-04
- 1.1.0 — 2022-09-23
- 1.0.0 — 2022-08-19

## README

# tiny-buffer-map

A very simple Map for Buffers. Has the same API as a JS Map.

## Usage
```js
const BufferMap = require('tiny-buffer-map')
const b4a = require('b4a')

const key = b4a.from('hello')

const m = new BufferMap()
m.set(b4a.from('a'), 'b')
m.set(b4a.from('c'), 'd')
m.get(b4a.from('a')) // 'b'
m.delete(b4a.from('c'))

for (const [key, value] of m) {
  // keys are buffers in the iterators
}
```

## License
MIT

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