idottv/node-mongodb-wrapper — pull request #11 by spion (2012-04-17 15:07:16+00:00)
Title: added authenticate support via username and password parameters

based on jaw187's code but without global variables and backward compatible

example usage

var db = mongo.db('localhost', 27017, 'test', null, 'username', 'password');

where the null is the prefix parameter