Socket
Socket
Sign inDemoInstall

hapi-panda-mongoose

Package Overview
Dependencies
234
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hapi-panda-mongoose

Handle Mongoose handshake and initial setup for Hapi18


Version published
Weekly downloads
2
Maintainers
1
Install size
8.09 MB
Created
Weekly downloads
 

Readme

Source

🐼 Mongoose Wrapper

One simple mongoose wrapper used on hapi18. All code resides under src/ folder.

Usage

const server = new Hapi.Server();

await server.register({
    plugin: require('hapi-panda-mongoose'),
    options: {
        promises: 'native',
        uri: 'mongodb://localhost:27017'
    }
});

const db = server.plugins['hapi-panda-mongoose'].connection;

const mongoose = server.plugins['hapi-panda-mongoose'].mongoose;

Configuration

Based on mongoose's options. Eg.

{
    promises: 'native', // (or bluebird)
    uri: 'mongodb://my-instance:port/db',
    mongoose: {} // set of mongoose options - https://mongoosejs.com/docs/connections.html#options
}

Supported versions

  • NodeJS >= 8

Changelog

See the changelog file.

Current versions

0.1.0 - first version (master)

Keywords

FAQs

Last updated on 23 Jul 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc