1.0.1 • Published 6 years ago

mongonow v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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