# buffer-map

> Buffer-keyed map for javascript

Latest version **0.0.8** (published 2024-10-02) · MIT license · 0 weekly downloads

## Install

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

## 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.8 |
| Published | 2024-10-02 |
| First published | 2018-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 0 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Christopher Jeffrey |
| Maintainers | chjj, nodweber, pinheadmz |
| Keywords | buffer, map |

## Links

- npm: https://www.npmjs.com/package/buffer-map
- Repository: https://github.com/chjj/buffer-map
- Issues: https://github.com/chjj/buffer-map/issues
- npm.io page: https://npm.io/package/buffer-map

## 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.8 (latest) — 2024-10-02
- 0.0.7 — 2019-03-21
- 0.0.6 — 2019-03-11
- 0.0.5 — 2019-01-22
- 0.0.4 — 2018-11-29
- 0.0.3 — 2018-09-29
- 0.0.2 — 2018-07-19
- 0.0.1 — 2018-07-19
- 0.0.0 — 2018-07-14

## README

# buffer-map

Buffer-keyed map for javascript.

## Usage

``` js
const assert = require('assert');
const {BufferMap} = require('buffer-map');
const key1 = Buffer.alloc(32, 0xab);
const key2 = Buffer.alloc(32, 0xab);

const map = new BufferMap();
map.set(key1, 'foo');
assert(map.get(key2) === 'foo');
```

## Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. `</legalese>`

## License

- Copyright (c) 2018, Christopher Jeffrey (MIT License).

See LICENSE for more info.

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