0.1.1 • Published 8 years ago

mongodb-connection-cache v0.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
8 years ago

mongodb-connection-cache

build status

A simple library to store and share a database connection.

Installation

npm install mongodb-connection

Usage

const db = require('mongodb-connection');

db.connect('mongodb://localhost:27018/test').then(db => {
  // first use of db
});

After connecting you can use the database instance by invoking db.get()

db.get()

Tests

npm test

npm run lint

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago