pg-connection-from-env
JSON →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.
Resources
packagepg-connection-from-env ↗
API endpoints
full doc /v1/registry/pg-connection-from-env