# livedb-mongo-memory

> livedb-mongo in memory using 'mingo'

Latest version **1.0.0** (published 2015-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install livedb-mongo-memory
pnpm add livedb-mongo-memory
yarn add livedb-mongo-memory
bun add livedb-mongo-memory
```

## 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.0 |
| Published | 2015-03-24 |
| First published | 2014-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Artur Zayats |
| Maintainers | zag2art |

## Links

- npm: https://www.npmjs.com/package/livedb-mongo-memory
- Repository: https://github.com/zag2art/livedb-mongo-memory
- Issues: https://github.com/zag2art/livedb-mongo-memory/issues
- npm.io page: https://npm.io/package/livedb-mongo-memory

## Dependencies (2)

- [clone](https://npm.io/package/clone.md) ^0.2.0
- [mingo](https://npm.io/package/mingo.md) ^0.2.5

## Recent versions

- 1.0.0 (latest) — 2015-03-24
- 0.1.2 — 2015-03-24
- 0.1.1 — 2015-03-24
- 0.1.0 — 2015-03-24
- 0.0.1 — 2014-12-23

## README

# livedb-mongo-memory

MongoDB like in memomy storage for [livedb](https://github.com/share/livedb). 
This driver can be used both as a snapshot, store and oplog.
 
The driver is written just for fun and it's not for the real use (maybe just for tests). 
It is just the way for me to learn livedb more deeply.

It based on [mingo](https://github.com/kofrasa/mingo) so it supports mongo queries with:
`$gt`, `$gte`, `$lt`, `$lte`, `$ne`, `$nin`, `$in`, `$and`, `$or`, `$nor`, `$not`, 
`$regex`, `$mod`, `$where`, `$all`, `$elemMatch`, `$size`, `$exists`, `$type`,
 `$orderby` mongo specific operations and also `$count`, `$skip`, `$limit` - 
 livedb-mongo specific operations.

At the moment it doesn't support $distinct, $mapReduce and $aggregate operators.

## Usage

```javascript
var livedbmongo = require('livedb-mongo-memory');
var mongo = livedbmongo(options);

var livedb = require('livedb').client(mongo); // Or whatever. See livedb's docs.
```

## MIT License
Copyright (c) 2014 by Artur Zayats

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

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