mongonow

1.0.1 • Public • Published

MongoNow

Tiny wrapper around the MongoDB driver to allow immediate usage of database commands without needing to store state or wrap everything in a callback.

Installation

$ npm i mongonow

Usage

const client = require("mongonow")(url) // replace url with your MongoDB url

// you can now use mongodb as usual:

const db = client.db("mydatabase")
db.collection("users").find().toArray().then(users => console.log(users))

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i mongonow

    Weekly Downloads

    8

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.41 kB

    Total Files

    3

    Last publish

    Collaborators

    • michaelauderer