mongoose-helpers-get-uri

0.1.1 • Public • Published

mongoose-helpers-get-uri

NPM version Build Status Coverage Status NSP Status

a mongoose helper that constructs a mongoose connection uri

table of contents

installation

npm install mongoose-events-event-logger

api

/**
 * @param {Object} user_options 
 * @param {string} [user_options.database] 
 * @param {string} [user_options.host] 
 * @param {string} [user_options.password] 
 * @param {number} [user_options.port] 
 * @param {string} [user_options.username] 
 *
 * @returns {string} 
 */
getUri( user_options )

usage

basic

var getUri = require( 'mongoose-helpers-get-uri' )
 
var options = {
  uri: {
    database: config.database,
    password: config.password,
    username: config.username
  }
}
 
var uri = getUri( options.uri )

license

MIT License

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i mongoose-helpers-get-uri

    Weekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    24.9 kB

    Total Files

    16

    Last publish

    Collaborators

    • dentous