# it-buffer

> Is it a string? Is it a BufferList? Or just a Buffer? Worry no more with `it-buffer`!

Latest version **0.1.3** (published 2021-04-13) · MPL-2.0 license · 0 weekly downloads

## Install

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

## 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.1.3 |
| Published | 2021-04-13 |
| First published | 2019-10-29 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Maciej Krüger |
| Maintainers | mkg20001 |
| Keywords | async, iterables, buffer, convert, transform |

## Links

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

## Dependencies (2)

- [bl](https://npm.io/package/bl.md) ^5.0.0
- [buffer](https://npm.io/package/buffer.md) ^6.0.3

## 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.1.3 (latest) — 2021-04-13
- 0.1.2 — 2020-03-21
- 0.1.1 — 2019-10-29
- 0.1.0 — 2019-10-29

## README

# it-buffer

Is it a string? Is it a BufferList? Or just a Buffer? Worry no more with `it-buffer`!

It exposes a transform stream that converts all buffer-like objects into true buffers

# Usage

```js
const pipe = require('it-pipe')

pipe(
  src,
  require('it-buffer'),
  dst
)
```

Also exposes `.toBuffer()` (the same as above) and `.toList()` (returns BufferLists instead of Buffers)

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