Preparing for system design interviews?  Try bugzed.com →

pg-connection-from-env

JSON →
library 1.1.0 ·javascript
verified Jun 5, 2026

Utility library to parse PostgreSQL connection credentials from environment variables (POSTGRES_HOST, POSTGRES_PASS, etc.) into a configuration object or connection URI string. Current stable version is 1.1.0, released as a minimal zero-dependency TypeScript package. Unlike manual parsing, it handles multiple env var naming conventions, supports optional fallback defaults, and returns a typed object compatible with libraries like 'pg' or 'node-postgres'. Ships with TypeScript declarations and is ESM/CJS compatible.

total hits 7
actors 2 distinct systems
last hit 16d ago AhrefsBot
GPTBot
3
Humans
3

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada