MongoDB Connection String URL Parser

JSON →
library 7.0.1 ·javascript
verified May 27, 2026

This package provides a robust API for parsing and manipulating MongoDB connection strings, aligning with the WhatWG URL API specification while introducing MongoDB-specific extensions. It is currently at version 7.0.1 (as of Jan 2026) and is actively maintained by the MongoDB Node.js team. Releases are typically aligned with the major versions of the `mongodb` driver, with rapid iterations within a major version to address issues. Key differentiators from a standard URL object include case-insensitive URL parameters, a `.hosts` property for extracting all host details, an `.isSRV` property to identify `mongodb+srv` schemes, and the immutability of standard `.host`, `.hostname`, `.port`, and `.href` properties, which cannot be directly set and may not return meaningful results in the MongoDB context.

total hits 18
actors 8 distinct systems
last hit 1d ago human
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
3
Humans
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇸🇬 Singapore · 🇩🇪 Germany