mongodb-url
v3.0.2mongodb-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
npm i [email protected]
Metadata
- Apache-2.0
- Whatever
- Unknown
- released 7/5/2018
Downloads
Maintainers
aherlihy, alena.khineika, christkv, chuck.kalmanek, cilix, daprahamian, deepshah, dpercy, durran, fredtruman, glowe, hswolff, imlucas, jeff-allen-mongo, jimol, jon.franco, jrbalsano, justinjmoses, kay-kim, lrlna, matt_d_rat, mbroadst, micheal.parks, mongodb-js-user, mpobrien, pzrq, redondos, rhysm, rueckstiess, sampoonachot, samweaver, satyasinha, schwartzrw, terakilobyte, tomhollander,