# @jorgeferrero/stream-to-buffer

> A promise based npm package that converts a node.js ReadStream to buffer

Latest version **2.0.6** (published 2020-12-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jorgeferrero/stream-to-buffer
pnpm add @jorgeferrero/stream-to-buffer
yarn add @jorgeferrero/stream-to-buffer
bun add @jorgeferrero/stream-to-buffer
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2020-12-14 |
| First published | 2018-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 21.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Jorge Ferrero Linacero |
| Maintainers | jorgeferrero |
| Keywords | typescript, node.js, streaming |

## Links

- npm: https://www.npmjs.com/package/@jorgeferrero/stream-to-buffer
- Repository: https://github.com/jferrl/stream-to-buffer
- Homepage: https://github.com/jferrl/stream-to-buffer#readme
- Issues: https://github.com/jferrl/stream-to-buffer/issues
- npm.io page: https://npm.io/package/@jorgeferrero/stream-to-buffer

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.0.6 (latest) — 2020-12-14
- 2.0.5 — 2020-12-09
- 2.0.4 — 2020-12-09
- 2.0.3 — 2020-12-09
- 2.0.2 — 2020-12-09
- 2.0.1 — 2020-12-09
- 2.0.0 — 2020-12-09
- 1.0.0 — 2018-11-24
- 0.9.3 — 2018-11-24
- 0.9.2 — 2018-11-24
- 0.9.1 — 2018-11-24
- 0.9.0 — 2018-11-23

## README

# Stream To Buffer

[![Build Status](https://travis-ci.org/jferrl/stream-to-buffer.svg?branch=master)](https://travis-ci.org/jferrl/stream-to-buffer)
[![Maintainability](https://api.codeclimate.com/v1/badges/71b14075a12d34b2efbc/maintainability)](https://codeclimate.com/github/jferrl/stream-to-buffer/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/71b14075a12d34b2efbc/test_coverage)](https://codeclimate.com/github/jferrl/stream-to-buffer/test_coverage)
![npm](https://img.shields.io/npm/dw/@jorgeferrero/stream-to-buffer)
![npm (scoped)](https://img.shields.io/npm/v/@jorgeferrero/stream-to-buffer)

A promise based Node.js package that converts a Node.js Readable to buffer

## Installation

```sh
npm i @jorgeferrero/stream-to-buffer
```

## Usage

```typescript
import { streamToBuffer } from '@jorgeferrero/stream-to-buffer';
import * as fs from 'fs';

const data = await streamToBuffer(fs.createReadStream('./file'));
console.log(data.toString());
```

```sh
Output should be the the content of the file
```

## Test

```sh
npm run test
```

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