# pull-next

> read from one pull-stream, then the next, then the next...

Latest version **1.0.1** (published 2017-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install pull-next
pnpm add pull-next
yarn add pull-next
bun add pull-next
```

## 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.1 |
| Published | 2017-06-24 |
| First published | 2016-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2017-06-24
- 1.0.0 — 2017-04-09
- 0.0.2 — 2016-10-23
- 0.0.1 — 2016-10-12
- 0.0.0 — 2016-05-16

## README

# pull-next

read from one pull-stream, then the next, then the next...

when one stream end (unless it errored) call a function
to get the next stream. much like [pull-cat](https://github.com/pull-stream/pull-cat)
except creates streams by calling a function instead of takeing them out of an array.

in particular, this is useful for making a read stream that reconnects
to a source.

## example

create a stream that reads from a leveldb 100 items at a time.

``` js
var next = require('pull-next')
var pl = require('pull-level')
var db = require('level')(path_to_level)

function resume () {
  var last = null
  return Next(function () {
    return pull(
      pl.read(db, {gt: last && last.key, limit: 100}),
      pull.through(function (data) { last = data })
    )
  })
}

```

hint: this might be even more useful over [multilevel](https://github.com/level/multilevel)

## License

MIT

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