# pull-read-queue

> treat a pull-stream as a queue.

Latest version **1.0.3** (published 2017-12-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install pull-read-queue
pnpm add pull-read-queue
yarn add pull-read-queue
bun add pull-read-queue
```

## 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.3 |
| Published | 2017-12-03 |
| First published | 2017-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | 'Dominic Tarr' |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/pull-read-queue
- Repository: https://github.com/dominictarr/pull-read-queue
- Issues: https://github.com/dominictarr/pull-read-queue/issues
- npm.io page: https://npm.io/package/pull-read-queue

## Dependencies (2)

- [pull-pause](https://npm.io/package/pull-pause.md) 0.0.2
- [pull-stream](https://npm.io/package/pull-stream.md) ^3.6.1

## Recent versions

- 1.0.3 (latest) — 2017-12-03
- 1.0.0 — 2017-12-03

## README

# pull-read-queue

treat a pull-stream as a queue.

## example

``` js
//min: start reading again if we have less than `min` items in the queue.
//max: stop reading when have `max` or more items in the queue.
var queue = ReadQueue(min=5, max = 10, onData)

pull(
  source,
  queue
)

function onData(data) {
  if(output.length < 20)
    output.push(queue.shift()) //etc!
}

```



## License

MIT

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