
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
keyv-mongodb
Advanced tools
MongoDB storage adapter for Keyv with support for Mongoose
mongodb
and mongoose
are both peerDependecies. Install either one (or both) you'll be using with this package.
yarn add keyv keyv-mongodb mongoose
# or
yarn add keyv keyv-mongodb mongodb
>= 6
>= 4
const mongoose = require('mongoose')
mongoose.connect(connectionOptions)
const keyv = new Keyv({
store: new KeyvMongoDB({ mongooseConnection: mongoose.connection }),
})
const keyv = new Keyv({
store: new KeyvMongoDB({ db: dbInstance }),
})
Or just give a promise...
const keyv = new Keyv({
store: new KeyvMongoDB({ dbPromise: dbInstancePromise }),
})
MongoDB connection strings are the best way to configure a new connection. For advanced usage, more options can be configured with mongoOptions
property.
const keyv = new Keyv({
store: new KeyvMongoDB({ url: 'mongodb://localhost/test-app' }),
})
ISC License
Based on work from
FAQs
MongoDB storage adapter for Keyv with support for Mongoose
The npm package keyv-mongodb receives a total of 2,729 weekly downloads. As such, keyv-mongodb popularity was classified as popular.
We found that keyv-mongodb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.