# mongod-mock

> Mock mongod

Latest version **0.0.2** (published 2014-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongod-mock
pnpm add mongod-mock
yarn add mongod-mock
bun add mongod-mock
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-07-23 |
| First published | 2014-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ForbesLindesay |
| Maintainers | forbeslindesay |

## Links

- npm: https://www.npmjs.com/package/mongod-mock
- Repository: https://github.com/ForbesLindesay/mongod-mock
- Issues: https://github.com/ForbesLindesay/mongod-mock/issues
- npm.io page: https://npm.io/package/mongod-mock

## Dependencies (4)

- [clone](https://npm.io/package/clone.md) ~0.1.17
- [manip](https://npm.io/package/manip.md) ~0.9.3
- [promise](https://npm.io/package/promise.md) ~5.0.0
- [mongomatch](https://npm.io/package/mongomatch.md) ~0.1.0

## Recent versions

- 0.0.2 (latest) — 2014-07-23
- 0.0.1 — 2014-07-21

## README

# mongod-mock

Mock mongod

[![Build Status](https://img.shields.io/travis/ForbesLindesay/mongod-mock/master.svg)](https://travis-ci.org/ForbesLindesay/mongod-mock)
[![Dependency Status](https://img.shields.io/gemnasium/ForbesLindesay/mongod-mock.svg)](https://gemnasium.com/ForbesLindesay/mongod-mock)
[![NPM version](https://img.shields.io/npm/v/mongod-mock.svg)](https://www.npmjs.org/package/mongod-mock)

## Installation

    npm install mongod-mock

## Usage

In memory:

```js
var db = require('mongod-mock')('mock:memory');

// use db
```

With a file (only written every 500ms at most, and won't work with multiple processes):

```js
var db = require('mongod-mock')('mock:my-file.json');

// use db
```

Lots of operations are not supported, but this should work for simple demos

## License

  MIT

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