0.1.3 • Published 8 years ago

mongoxy v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

mongoxy

Simple wrapper over node-mongodb-native in order to avoid excessively nested Promises. Inspired by mongoskin.

Install

$ npm install mongoxy

Usage

var mongo = require('mongoxy')
var db = mongo.db("mongodb://localhost:27017/test", {native_parser:true})
db.bind('lol')
db.lol.find({}).toArray().then((docs) => {
	console.log(docs)
	db.close().then(() => {
		console.log('Database closed.')
	})
})
0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago