A very lazy way to get a mongo collection with mongoskin
Want to see pretty graphs? Log in now!
npm install mongo-collection
|10||downloads in the last week|
|13||downloads in the last month|
|Last Published By|
|Version||0.1.2 last updated 3 months ago|
|Keywords||mongo, collection, mongoskin|
You should probably never need this, but I use it because I can never remember / can't be bothered to remember how to get a collection using Mongoskin.
var mc = require('mongo-collection'); var dogsCollection = mc('localhost', 'animals-db', 'dogs'); dogsCollection.find(...) // etc...