mongodb-url

3.0.3 • Public • Published

mongodb-url

How MongoDB URL's work.

Example

var parse = require('mongodb-url');
parse('localhost:27017')
>>> { dbName: 'admin', servers: [ { host: 'localhost', port: 27017 } ] }
parse('mongodb://localhost:27017')
>>> { dbName: 'admin', servers: [ { host: 'localhost', port: 27017 } ] }

Install

npm install --save mongodb-url

Test

npm test

License

Apache 2

/mongodb-url/

    Package Sidebar

    Install

    npm i mongodb-url

    Weekly Downloads

    266

    Version

    3.0.3

    License

    Apache-2.0

    Unpacked Size

    23.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • orechova
    • himanshusinghs
    • c-buckingham
    • mongo-j
    • mabaasit
    • alexander_schroll
    • chuck.kalmanek
    • mongodb-js-user
    • rueckstiess
    • durran
    • lerouxb
    • fredtruman
    • mbroadst
    • hswolff
    • satyasinha
    • matt_d_rat
    • rhysm
    • tomhollander
    • alena.khineika
    • jeff-allen-mongo
    • mmarcon
    • jonathan.balsano
    • mongodb-build
    • jack.weir
    • stennie
    • mcasimir
    • kristina.stefano
    • jarjee
    • shaketbaby
    • devtoolsbot
    • addaleax
    • gribnoysup
    • mutukrish
    • imlucas