mongodb-url

JSON →
library 3.0.3 ·javascript
verified Jun 5, 2026

Parses MongoDB connection strings into structured objects. v3.0.3, stable but low maintenance. Differentiates from mongoose's parser by being standalone and simple, supporting both mongodb:// scheme and host-only formats. Returns {dbName, servers} with optional authentication and options fields. Ideal for CLI tools and lightweight MongoDB connection setups without full driver dependencies.