# buffer-up

> Buffer up streaming data to a single callback called when the piping stream calls end

Latest version **1.0.0** (published 2014-08-12) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2014-08-12 |
| First published | 2014-08-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sam Newman |
| Maintainers | sonewman |
| Keywords | Buffer, stream |

## Links

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

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K 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

## Recent versions

- 1.0.0 (latest) — 2014-08-12
- 0.1.0 — 2014-08-10

## README

# Buffer-Up

### Install:
```bash
$ npm i -S buffer-up
```

Buffer-up is a very simple module to use, it is basically to reduce the boilerplate code, which is needed when you have a stream and you want to concat the data emitted into a string and get the data out then end either as a string or if the data is json then as an **object**.

It is really as simple as that!

```javascript
var bufferUp = require('buffer-up')

var bufferContent = bufferUp(function (err, content) {
  if (!err) doSomethingWithContent(content)
})

require('http').get('http://www.example.com', function (res) {
  res.pipe(bufferContent)
})
```

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