mongodb-connection-cache
A simple library to store and share a database connection.
Installation
npm install mongodb-connection
Usage
const db = ; db;
After connecting you can use the database instance by invoking db.get()
db
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.