# mongo-stream

> Streaming interface to mongo

Latest version **0.1.0** (published 2012-09-29) · 0 weekly downloads

## Install

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

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-09-29 |
| First published | 2012-09-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Raynos |
| Maintainers | raynos |

## Links

- npm: https://www.npmjs.com/package/mongo-stream
- Repository: https://github.com/Raynos/mongo-stream
- Issues: https://github.com/Raynos/mongo-stream/issues
- npm.io page: https://npm.io/package/mongo-stream

## Dependencies (5)

- [from-source](https://npm.io/package/from-source.md) ~0.1.0
- [read-stream](https://npm.io/package/read-stream.md) ~0.4.1
- [write-stream](https://npm.io/package/write-stream.md) ~0.4.0
- [mapping-stream](https://npm.io/package/mapping-stream.md) ~0.1.0
- [read-write-stream](https://npm.io/package/read-write-stream.md) ~0.1.0

## Recent versions

- 0.1.0 (latest) — 2012-09-29

## README

# mongo-stream

Streaming interface to mongo

## Example

``` js
var collection = require("mongo-col")
    , from = require("read-stream").fromArray
    , to = require("write-stream").toArray
    , MongoStream = require("mongo-stream")

    , someCollection = collection("name")
    , someCollectionStream = MongoStream(someCollection)
    , data = [{
        some: "data"
    }]

from(data)
    .pipe(someCollectionStream.insert({ safe: true }))
    .pipe(to([], function readList(list) {
        console.log("inserted correctly", list)

        someCollectionStream.find({ hello: "world" })
            .pipe(to([], function readResult(list2) {
                console.log("found correctly", list2)
            }))
    }))
```

## Installation

`npm install mongo-stream`

## Contributors

 - Raynos

## MIT Licenced

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