{"library":"mongo-connection-string","type":"library","category":null,"description":"Utility library for parsing, building, and manipulating MongoDB connection strings. Current stable version is 0.1.5. It provides a ConnectionString class to decompose URIs into components (protocol, username, password, hosts, database, options) and serialize them back to URI or human-readable form. The library handles URL encoding/decoding, defaults protocol to mongodb://, and includes a heuristic for percent-encoded characters. It is actively maintained but rarely updated. Key differentiators: lightweight with TypeScript types, no dependencies, designed for both Node.js and browser, and provides a safe toString() that masks passwords.","language":"javascript","status":"active","version":"0.1.5","tags":["javascript","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongo-connection-string","imports":["import { ConnectionString } from 'mongo-connection-string'","import { parse } from 'mongo-connection-string'","import type { ConnectionStringOptions } from 'mongo-connection-string'"]},{"cmd":"yarn add mongo-connection-string","imports":[]},{"cmd":"pnpm add mongo-connection-string","imports":[]}],"homepage":"https://github.com/dwmkerr/mongo-connection-string#readme","github":"https://github.com/dwmkerr/mongo-connection-string","docs":null,"changelog":null,"pypi":null,"npm":"mongo-connection-string","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}