pull-offset-limit
A pull-stream that filters until X elements, and stops streaming after Y elements. Useful for pagination purposes.
Usage
const pull = const split = const offsetLimit =
API
offsetLimit = require('pull-offset-limit')(offset, limit, onLimit)
Create a new offsetLimit through stream.
- offset: if set, filters stream until offset is reached
- limit: if set, stops stream when limit is reached
- onLimit: if set, runs when limit is reached
Installation
$ npm install pull-offset-limit