A lightweight, zero-dependency wrapper around the `pg` (node-postgres) library for Node.js, providing simplified CRUD methods (`one`, `oneOrNone`, `any`, `many`, `none`) and automatic connection management via a single `POSTGRES_URL` environment variable. Version 1.0.4 is the latest stable release. It is designed for quick prototyping and small projects, with minimal API surface and no ORM features. Key differentiator: instant setup with environment variables, no configuration files required.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
The package only provides a CommonJS export. Named exports are not available.
All methods expect a single object argument with `query` and optional `params` keys.
Do not use raw pg client methods; the wrapper handles connection and cleanup.
Demonstrates basic usage: importing the module, querying a single row, and closing the connection.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.