# stream-callback

> Turns a stream into a callback.

Latest version **1.0.4** (published 2017-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install stream-callback
pnpm add stream-callback
yarn add stream-callback
bun add stream-callback
```

## 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.4 |
| Published | 2017-07-18 |
| First published | 2015-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kiko Beats |
| Maintainers | markhuge |
| Keywords | callback, convert, stream, stream2cb, transform, wait |

## Links

- npm: https://www.npmjs.com/package/stream-callback
- Repository: https://github.com/kikobeats/stream-callback
- Homepage: https://github.com/Kikobeats/stream-callback
- Issues: https://github.com/Kikobeats/stream-callback/issues
- npm.io page: https://npm.io/package/stream-callback

## Dependencies (4)

- [is-stream](https://npm.io/package/is-stream.md) ~1.1.0
- [lodash.after](https://npm.io/package/lodash.after.md) ~4.0.1
- [concat-stream](https://npm.io/package/concat-stream.md) ~1.6.0
- [end-of-stream](https://npm.io/package/end-of-stream.md) ~1.4.0

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-07-18
- 1.0.3 — 2016-07-31
- 1.0.2 — 2016-04-27
- 1.0.1 — 2016-04-26
- 1.0.0 — 2016-04-26
- 0.0.1 — 2015-02-11
- 0.0.0 — 2015-02-11

## README

# stream-callback

![Last version](https://img.shields.io/github/tag/Kikobeats/stream-callback.svg?style=flat-square)
[![Build Status](http://img.shields.io/travis/Kikobeats/stream-callback/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/stream-callback)
[![Dependency status](http://img.shields.io/david/Kikobeats/stream-callback.svg?style=flat-square)](https://david-dm.org/Kikobeats/stream-callback)
[![Dev Dependencies Status](http://img.shields.io/david/dev/Kikobeats/stream-callback.svg?style=flat-square)](https://david-dm.org/Kikobeats/stream-callback#info=devDependencies)
[![NPM Status](http://img.shields.io/npm/dm/stream-callback.svg?style=flat-square)](https://www.npmjs.org/package/stream-callback)
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/Kikobeats)

> Turns a stream into a callback.

## Install

```bash
$ npm install stream-callback --save
```

## Usage

```js
var rs = new Readable({objectMode: true})
  rs.push({foo: 'bar'})
  rs.push({foo: 'bar'})
  rs.push(null)

  streamCb(rs, console.log)
  // => { '0': undefined, '1': [ { foo: 'bar' }, { foo: 'bar' } ] }
```

## API

### streamCb(options, cb)

#### options

*Required*<br>
Type: `stream` `object`

##### concatOptions

Type: `object`

##### eosOptions

Type: `object`

#### cb

*Required*<br>
Type: `function`

## License

MIT © [Kiko Beats](http://kikobeats.com)

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