Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.
mongodb-jsPublic archive

About

Extend mongodb-uri for more flexibility and data packing.

Topics

Resources

Stars

2 stars

Watchers

8 watching

Forks

Latest commit

 

History

43 Commits

Folders and files

Repository files navigation

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

About

Extend mongodb-uri for more flexibility and data packing.

Topics

Resources

Stars

2 stars

Watchers

8 watching

Forks

Releases

Packages

Contributors

Languages