Node.js module for reading PostgreSQL connection passwords from the user’s ~/.pgpass file (or the equivalent on Windows). It looks up the matching entry for a given host and user, returning the password via a callback, and is useful when you need to integrate pgpass file handling into Node code.
Project status
- Actively maintained in the short term, with a recent update on 2026-06-20 (v1.0.6) and an upstream push the same day (2026-06-20), indicating current attention rather than dormancy.
- Apparent update cadence is sporadic rather than steady, with the previous recorded update before 2026-06-20 occurring on 2021-12-19 (v1.0.5), implying multi-year gaps.
AI summary generated
Recent updates
v1.0.6
Release v1.0.6 makes a small but important internal change to the password-reading logic in lib/helper.js, switching from the split2 stream parser to Node.js readline. The release notes are missing entirely, so the diff indicates several behavior-sensitive updates, plus CI and dependency metadata changes.
Breakingv1.0.5
v1.0.5 contains no published release notes. The only recorded change in the diff is an update to the package version and a dependency bump for split2.
v1.0.4
Release v1.0.4 updates the npm package metadata version from 1.0.3 to 1.0.4. The code diff only shows changes to packaging configuration (.npmignore) and the version field in package.json, with no functional source code changes present in the provided diff.
v1.0.3
Release v1.0.3 was published on 2020-10-22, but no release notes or changelog content was provided by the publisher. As a result, there is no documented information available about new features, fixes, breaking changes, security, or dependency updates in this release.
v1.0.2
Release v1.0.2 includes no publisher-provided release notes. The code diff shows changes focused on repository ignore rules, npm publish exclusions, and CI/integration test execution, with no direct changes to the module's runtime source.
v1.0.1
This release (v1.0.1) makes a small change to the package entrypoint and adjusts a test helper invocation. No release notes were provided by the publisher.
Featuresv1.0.0
This release (v1.0.0) introduces internal changes to how the module handles the underlying stream while reading the .pgpass file, and adds a new regression test aimed at preventing leaked file descriptors. Release notes were not provided, so the changes below are inferred from the actual diff.
v0.0.6
Release v0.0.6 updates the project metadata and documentation, with changes limited to the README and package.json. No functional code changes are shown in the provided diff, but the license information appears to have been updated.
v0.0.5
This release (v0.0.5) contains minimal changes. The only code modification is a small change in how helper.js is required, plus a formatting change, and the package version is bumped.
v0.0.4
Release v0.0.4 updates the repository configuration and dependency set. The release notes are not provided, so the changes below are based solely on the code diff.
v0.0.3
The v0.0.3 release has no release notes provided by the publisher, so no documented changes (features, fixes, or breaking updates) can be extracted from the release documentation. Developers should review the corresponding tag diffs or changelog in the repository to determine what changed and whether any upgrade actions are required.