MongoSkin: The future layer for node-mongodb-native. : While working on the v0.1 of my little GTD app , which is being build with Node and MongoDB, I quickly came to the conclusion that I didn’t like Mongo DB Native NodeJS Driver (node-mongodb-native) very much. Much of it had to do with NodeJS being async, which resulted in a lot of nested code. Here a little example using the native driver:
Now if your used to the straightforwardness of the driver in PHP you’re probably thinking “what the hell!” . But lucky for you their is is MongoSkin (node-mongoskin) , which is basically wrapper for node-mongo-native but uses promises instead of nesting every thing. If you are familiar with jQuery.Deferred() , it’s a bit like that. Here is a little example:
Pretty sweet!...
Content suppressed by ://URLFAN, for full article visit source