UNPKG

mongojs

Version:

Easy to use module that implements the mongo api

11 lines (8 loc) 220 B
var mongojs = require('../index') var db = mongojs('localhost', ['test']) db.test.findOne(function () { throw new Error('I should crash the program') }) setTimeout(function () { throw new Error('timeout') }, 5000)