turing-mongo

A port to mongodb.

Usage no npm install needed!

<script type="module">
  import turingMongo from 'https://cdn.skypack.dev/turing-mongo';
</script>

README

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