/mont

MongoDB client layer with middleware support

Primary LanguageJavaScriptMIT LicenseMIT

mont

MongoDB client layer with middleware support.

Install

npm install mont

Usage

const Mont = require('mont')

const db = Mont('localhost/app')

db.get('colors')
  .insert({ id: 'blue', body: { hex: '#00ff00' } })
  .then(console.log)

// { id: 'blue',
//   type: 'colors',
//   body: { hex: '#00ff00' } }

Test

npm test

Docs

Consult Monk API docs and Koa middleware guide

License

MIT