turing-mongo

0.50.0 • Public • Published

turing-mongo

version license

A promise port to mongodb.

API

To connect to a mongodb you simply have to require turing-mongo. It will return a promise which makes it easy to react to success and error.

const turingMongo = require('turing-mongo');

turingMongo.setupConnection().then(() => {
  // do sth
}).catch((error) => {
  throw error;
});

Config

  • turing:mongo:host - The mongodb host(s) to connect to. (default: "localhost")
  • turing:mongo:db - The mongodb db to connect to. (default: "turing")
  • turing:mongo:user - The mongodb's user.
  • turing:mongo:password - The mongodb user's password.

Contributors

  • Benedikt Stemmildt
  • Jonathan Meyer

License

Apache-2.0

/turing-mongo/

    Package Sidebar

    Install

    npm i turing-mongo

    Weekly Downloads

    45

    Version

    0.50.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • benestem
    • jmeyer