Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
catbox-mongodb
Advanced tools
Changelog
4.2.1 - 2018-11-01
key
parameter for get, set, drop into { id, segment }
.gitignore
Readme
MongoDB adapter for catbox
Lead Maintainer: Marcus Poehls
catbox-mongodb serializes values to BSON using MongoDB driver, therefore following data types are supported for this adapter: Object, Array, Number, String, Date, RegExp.
The lastest
catbox-mongodb
version4.x
works only with hapi v17
Install catbox-mongodb
via NPM. Remember that catbox-mongodb
requires its parent module catbox
:
npm install catbox catbox-mongodb
Do you use hapi v16 or lower? Install catbox-mongodb
version 3.x
with a compatible version of catbox
:
# for hapi v16 (or lower)
npm install catbox@9 catbox-mongodb@3
catbox-mongodb
accepts the following options:
uri
- the MongoDB URI, defaults to 'mongodb://127.0.0.1:27017/?maxPoolSize=5'
partition
- the MongoDB database for cached itemsSample catbox cache initialization :
const Catbox = require('catbox');
const cache = new Catbox.Client(require('catbox-mongodb'), {
uri: 'your-mongodb-uri', // Defaults to 'mongodb://127.0.0.1:27017/?maxPoolSize=5' if not provided
partition: 'cache'
})
Or configure your hapi server to use catbox-mongodb
as the caching strategy (code snippet uses hapi v17
):
const Hapi = require('hapi')
const CatboxMongoDB = require('catbox-mongodb')
const server = new Hapi.Server({
cache : [{
name : 'mongoDbCache',
engine : CatboxMongoDB,
uri : 'your-mongodb-uri', // Defaults to 'mongodb://127.0.0.1:27017/?maxPoolSize=5' if not provided
partition : 'cache'
}]
});
FAQs
MongoDB adapter for catbox
The npm package catbox-mongodb receives a total of 2 weekly downloads. As such, catbox-mongodb popularity was classified as not popular.
We found that catbox-mongodb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.