hapi-monk

0.2.0 • Public • Published

hapi-monk Build Status

A Hapi plugin for monk

Overview

npm install --save hapi-monk

This plugin simply exposes all monk database methods. It also exposes the created database options property. The point is to share the same connection across all plugins in a Hapi application.

Options

option required default description
url false mongodb://localhost:27017 MongoDB connection string

Example manifest.json

{
	"pack" : {},

	"plugins" : {
		"hapi-monk" : {
			"url" : "$env.DATABASE_URL"
		}
	},

	"servers" : [
		{
			"host" : "$env.HOST",
			"port" : "$env.PORT"
		}
	]
}

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i hapi-monk

Weekly Downloads

1

Version

0.2.0

License

none

Last publish

Collaborators

  • wtcross