@augmentedjs/mockodb

1.0.3 • Public • Published

mockodb

A Mock MongoDB client for use with webpack dev server or other testing tools.

Purpose

MockoDB is an API similar store to MongoDB's node client. Its intention is to allow a simple in-memory store to wire up in a webpack dev server.

Limits

  • It's not designed to be a memory cache similar to redis.
  • Not designed for concurrency
  • not for use in production
  • not scalable

Usage

const { MockoDB } = require("@augmentedjs/mockodb");

const db = new MockoDB({ "name": "myDB", "collections": { "characters": ..., "games": ..., "quests": ... } });

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i @augmentedjs/mockodb

    Weekly Downloads

    2

    Version

    1.0.3

    License

    Apache-2.0

    Unpacked Size

    17.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • mukundanps
    • thedocbwarren
    • kcalpo
    • jtwalker2000