mont

0.1.7 • Public • Published

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

Package Sidebar

Install

npm i mont

Weekly Downloads

4

Version

0.1.7

License

MIT

Last publish

Collaborators

  • geraldhart100