to-mongodb-core

Turns a mongojs or mongodb driver instance to a mongodb-core instance.

Usage no npm install needed!

<script type="module">
  import toMongodbCore from 'https://cdn.skypack.dev/to-mongodb-core';
</script>

README

to-mongodb-core

build status

Gets the underlying mongodb-core instance in the mongojs instance.

Usage

var mongojs = require('mongojs');
var toMongodbCore = require('to-mongodb-core');

var db = mongojs('mydb');

toMongodbCore(db, function(err, mdbcore) {
  // mdbcore is the mongodb-core server instance used.
});

License

MIT