pgpass
JSON →Read .pgpass files to retrieve PostgreSQL passwords. Version 1.0.5 is the current stable release. The module reads the ~/.pgpass file (or Windows equivalent) and returns the matching password for a given connection configuration. It handles environment variables like PGPASSFILE and PGPASSWORD, and respects file permissions. This module is included in node-postgres but can be used standalone. The package has a low release cadence, with the last update years ago. It is stable and simple, focused solely on parsing pgpass files.
Resources
packagepgpass ↗