Socket
Book a DemoInstallSign in
Socket

@pager/hapi-mongo

Package Overview
Dependencies
Maintainers
72
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@pager/hapi-mongo

A hapi MongoDB plugin

unpublished
latest
Source
npmnpm
Version
8.0.0
Version published
Weekly downloads
0
Maintainers
72
Weekly downloads
 
Created
Source

hapi-mongo

A hapi Mongoose plugin

CircleCI

This plugin provides a MongoDB connection for your Hapi.js server. The configuration settings take the following options:

  • url - (option) database connection uri, following MongoDB's specs. Defaults to MONGO_URL environment variable
  • settings - (optional) database connection options, as described here.
const plugin = {
    register: require('@pager/hapi-mongo'),
    options: { url: 'mongodb://localhost/test' }
};

await server.register(plugin); // throws if no connection is possible

// server.app.mongo is exposed

Keywords

hapi

FAQs

Package last updated on 15 May 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