Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
/ mont Public archive

MongoDB client layer with middleware support

License

Notifications You must be signed in to change notification settings

orinak/mont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

MongoDB client layer with middleware support

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published