0.2.0 • Published 10 years ago

admit-one-mongo v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Admit One Mongo

NPM version Build status Code Climate Coverage Status Dependencies devDependencies

Admit One adapter for MongoDB.

Install

npm install admit-one admit-one-mongo

Usage

var admit = require('admit-one')('mongo', {
  mongo: {
    db: 'mongodb://localhost/dbname'
  }
});

Once you have created an instance, see the main Admit One page for details on how to set up your routes with Express.

API

admit(options)

options.mongo.db

Type: String
Default: undefined

options.mongo.collection

Type: String
Default: 'users'

License

This project is distributed under the MIT license.