# from2-buffer

> Create a readable stream from a Buffer with from2

Latest version **1.0.0** (published 2017-07-23) · MIT license · 0 weekly downloads

## Install

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

## 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.0.0 |
| Published | 2017-07-23 |
| First published | 2017-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Renée Kooi |
| Maintainers | goto-bus-stop |

## Links

- npm: https://www.npmjs.com/package/from2-buffer
- Repository: https://github.com/goto-bus-stop/from2-buffer
- Homepage: https://github.com/goto-bus-stop/from2-buffer#readme
- Issues: https://github.com/goto-bus-stop/from2-buffer/issues
- npm.io page: https://npm.io/package/from2-buffer

## Dependencies (1)

- [from2](https://npm.io/package/from2.md) ^2.3.0

## Recent versions

- 1.0.0 (latest) — 2017-07-23

## README

# from2-buffer

Create a readable stream from a Buffer with [`from2`](https://github.com/hughsk/from2).

## Install

```bash
npm install from2-buffer
```

## Usage

```js
var fromBuffer = require('from2-buffer')
var buffer = require('fs').readFileSync(__filename)

fromBuffer(buffer).pipe(process.stdout)
```

## API

### `fromBuffer(buffer: Buffer): Readable`

Create a readable stream that will stream appropriately sized chunks of the given Buffer.

## Related

 - [from2](https://github.com/hughsk/from2) - Convenience wrapper for ReadableStream, with an API lifted from "from" and "through2"
 - [from2-array](https://github.com/binocarlos/from2-array) - Create a from2 stream based on an array of source values
 - [from2-string](https://github.com/yoshuawuyts/from2-string) - Create a stream from a string. Sugary wrapper around from2

## License

[MIT](./LICENSE)

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