Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
note: monk 2.x drop the support for node < 0.12. If you are still using an earlier version, stick to monk 1.x
const db = require('monk')('localhost/mydb')
const users = db.get('users')
users.index('name last')
users.insert({ name: 'Tobi', bigdata: {} })
users.find({ name: 'Loki' }, '-bigdata').then(function () {
// exclude bigdata field
})
users.find({}, {sort: {name: 1}}).then(function () {
// sorted by name field
})
users.remove({ name: 'Loki' })
db.close()
_id
in queriessafe
is true
by default for all queries)Most of the Monk's features are implemented as middleware.
There are a bunch of third-parties middlewares that add even more functionalities to Monk:
Created an nice middleware? Send a PR to add to the list!
MIT
5.0.0 / 2017-05-21
FAQs
The wise MongoDB API
The npm package monk receives a total of 2,758 weekly downloads. As such, monk popularity was classified as popular.
We found that monk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.