# unslab

> Unslab some slab'ed buffers

Latest version **1.3.0** (published 2024-07-29) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2024-07-29 |
| First published | 2024-05-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Holepunch |
| Maintainers | mafintosh |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.3.0 (latest) — 2024-07-29
- 1.2.0 — 2024-05-27
- 1.1.0 — 2024-05-27
- 1.0.0 — 2024-05-27
- 0.0.0 — 2024-05-27

## README

# unslab

Unslab some slab'ed buffers

```
npm install unslab
```

## Usage

``` js
const unslab = require('unslab')

// the buf returned unpools the buffer passed from the memory slab
const buf = unslab(Buffer.from('hello world'))

// can do multiple at the same time if you use them together. only does a single alloc in this case
const [a, b] = unslab([Buffer.from('hello'), Buffer.from('world')])
```

## License

Apache-2.0

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