Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@modernpoacher/catbox-mongodb

Package Overview
Dependencies
Maintainers
0
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modernpoacher/catbox-mongodb

MongoDB adapter for Catbox

  • 1.1.181
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@modernpoacher/catbox-mongodb

A MongoDB adapter for catbox.

@modernpoacher/catbox-mongodb serializes values to BSON using the MongoDB driver.

This adapter supports Object, Array, Number, String, Date, and RegExp data types.

Installation

Install @modernpoacher/catbox-mongodb via NPM.

@modernpoacher/catbox-mongodb requires catbox:

npm i @hapi/catbox @modernpoacher/catbox-mongodb

Options

@modernpoacher/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 items

Usage

import Catbox from '@hapi/catbox';
import Client from '@modernpoacher/catbox-mongodb'

const cache = new Catbox.Client(Client, {
  uri: 'your-mongodb-uri',
  partition: 'your-cache-partition'
})

Keywords

FAQs

Package last updated on 15 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc