Skip to content

NEO97online/mongonow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node module to use MongoDB commands immediately, without storing state or wrapping everything in a callback

Resources

Stars

Watchers

Forks

Packages

No packages published