Socket
Book a DemoInstallSign in
Socket

mongod-mock

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongod-mock

Mock mongod

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

mongod-mock

Mock mongod

Build Status Dependency Status NPM version

Installation

npm install mongod-mock

Usage

In memory:

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):

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

FAQs

Package last updated on 23 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts