0.0.2 • Published 10 years ago
mongod-mock v0.0.2
mongod-mock
Mock mongod
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