# mfr-query-stream

> create a scroller for map-filter-reduce query.

Latest version **2.0.1** (published 2018-04-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install mfr-query-stream
pnpm add mfr-query-stream
yarn add mfr-query-stream
bun add mfr-query-stream
```

## 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 | 2.0.1 |
| Published | 2018-04-10 |
| First published | 2018-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | 'Dominic Tarr' |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/mfr-query-stream
- Repository: https://github.com/dominictarr/mfr-query-stream
- Issues: https://github.com/dominictarr/mfr-query-stream/issues
- npm.io page: https://npm.io/package/mfr-query-stream

## Dependencies (4)

- [libnested](https://npm.io/package/libnested.md) ^1.3.1
- [pull-more](https://npm.io/package/pull-more.md) ^1.1.0
- [pull-stream](https://npm.io/package/pull-stream.md) ^3.6.2
- [hyperloadmore](https://npm.io/package/hyperloadmore.md) ^1.1.0

## Recent versions

- 2.0.1 (latest) — 2018-04-10
- 2.0.0 — 2018-04-10
- 1.0.0 — 2018-04-10

## README

# mfr-query-stream

create a scroller for map-filter-reduce query.

Assumes that there is a timestamp property which the query is sorted by.

## example

``` js
var QueryStream = require('mfr-query-stream')
var pull = require('pull-stream')

return QueryStream(

  api.sbot.query.read, //function to query the database

  [{$filter: {value: { //the query. here we filter for messages with type: post that are not private.
    private: {$is: 'undefined'},
    content: {type: 'post'},
    author: id //by a given author.
  }}}],

  //a pull stream that takes messages and outputs html elements.
  pull.map(api.message.layout),

  //a container element to put all the items into.
  h('div.content')
)
```

## License

MIT

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