Connection String Parser & Generator

JSON →
library 5.0.0 ·javascript
verified May 27, 2026

connection-string is an advanced JavaScript library for parsing and generating URL connection strings, offering features beyond standard URL parsers. It supports a fully optional syntax for every component, multiple hosts, unification of Unix socket support with URL standards, automatic defaults configuration for missing parameters, and the ability to reconstruct a connection string from an object. The current stable version is 5.0.0, released in late 2025/early 2026. Releases are active but not on a fixed cadence, focusing on maintenance, compatibility, and feature enhancements. Key differentiators include its flexible parsing for partial or complex connection strings (e.g., with multiple hosts or specific Unix socket patterns) and its ability to apply defaults, making it highly versatile for database and service connection configurations. The library ships with TypeScript types.

total hits 31
actors 9 distinct systems
last hit 17h ago human
ByteDance
10
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2
Humans
3

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · 🇨🇦 Canada · MA