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
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 3.0.3
230
Version History
Package Sidebar
Install
Weekly Downloads