1349270
MongoDB Driver with simple and compact API, it also eliminates some callbacks. Install it with npm install mongo-lite, examples are in /examples folder. The project hosted on GitHub You can report bugs and discuss features on the Issues page. http://alexeypetrushin.github.com/mongo-lite/docs/index.html
第一眼看去觉得挺不错的, 都是新手常用的 API 接口,
var db = require('mongo-lite').connect('mongodb://localhost/test', ['posts', 'comments'])
db.posts.insert({title: 'first'}, function(err, doc){})
db.collection('posts').insert({title: 'first'}, function(err, doc){})
db.posts = db.collection('posts')
db.posts.insert({title: 'first'}, function(err, doc){})
db.posts.insert({title: 'first'}, function(err, doc){
doc.title = 'second'
db.posts.update({_id: doc._id}, doc, function(err){})
})