A very lazy way to get a mongo collection with mongoskin
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

Mongo Collection

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.

Usage

var mc = require('mongo-collection');

var dogsCollection = mc('localhost', 'animals-db', 'dogs');

dogsCollection.find(...) // etc...