3.0.0 • Published 4 years ago

mongo-start v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Build Status

Mongo-Start

A simple mongojs wrapper to return a collection so you don't need to write the same thing over and over.

To configure the connection you can create an environment variable called "mongo-connection". However since mongo-start uses qconf you can store the setting anywhere that qconf lets you.

const users = require('mongo-start')('users'); //mongojs collection
users.find({...}, (err, collection) => {
  //do stuff
});
const db = require('mongo-start')(); //mongojs db object
db.getCollectionNames((err, collectionNames) => {
  //collections in the db
});
3.0.0

4 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.4.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago