mongo-uri-builder
JSON →mongo-uri-builder is a zero-dependency Node.js module that creates MongoDB connection strings (URIs) from a JavaScript configuration object. Version 4.0.0 is the latest stable release as of 2023. The package is maintained on GitHub with an active issue tracker. It abstracts tedious URI construction, handling hosts, ports, replicas, authentication, and query options. Unlike manual string concatenation, it enforces correct URI encoding and structure. Requires Node.js >=12.
Resources
packagemongo-uri-builder ↗
API endpoints
full doc /v1/registry/mongo-uri-builder