pg-cli

JSON →
library 2.0.1 ·javascript
verified Jun 5, 2026

pg-cli is a small library wrapping node-pg (pg) to provide a more user-friendly PostgreSQL client for Node.js. It offers callback, thunk, and promise API styles, supports multiple database connection pools, and enables single- and multi-database transactions. Version 2.0.1 is stable, with a release cadence of approximately one year. It differentiates from raw pg by providing simplified CRUD operations like select, insert, update, updateBatch, and JSONB support, reducing boilerplate for common PostgreSQL tasks.