pgpass
npmv1.0.6Module for reading .pgpass
Safe to adopt
Yes — pgpass scores well across adoption, maintenance, weight, supply chain, and licensing. 33M downloads per week and 1 known dependents. Last published 81 days ago.
- AAdoption: grade A, Excellent.
33M downloads per week and 1 known dependents.
- AMaintenance: grade A, Excellent.
Last published 81 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 10 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding pgpass to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the pgpass README.
var pgPass = require('pgpass');
var connInfo = {
'host' : 'pgserver' ,
'user' : 'the_user_name' ,
};
pgPass(connInfo, function(pass){
conn_info.password = pass;
// connect to postgresql server
});pgpass vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| pgpassthis page | 33M | 1 | MIT | 2 months ago |
| pg | 46.3M | 5 | MIT | 1 day ago |
| drizzle-orm | 19M | 0 | Apache-2.0 | 1 day ago |
| postgres | 0 | 1 | Unlicense | 1 day ago |
| pg-pool | 43.5M | 1 | MIT | 1 day ago |
| kysely | 15.6M | 1 | MIT | 1 day ago |
Dependencies
Declared by pgpass v1.0.6. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (9)
Used by
Popular packages that depend on pgpass.
Relationship graph
Dependencies (left) and dependents (right) of pgpass.
Frequently installed together
A socket implementation that can run on Cloudflare Workers using native TCP connections.
Next generation testing framework powered by Vite
The postgres client/server binary protocol, implemented in TypeScript
Connection pool for node-postgres
Functions for dealing with a PostgreSQL connection string
generator async control flow goodness
A slightly nicer interface to Postgres over node-libpq
TypeScript typings for Cloudflare Workers
Release history
1 release in the last two years, typically about 81 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.6latest | 2 months ago | 10 KB | MIT |
| 1.0.5 | 4 years ago | 10 KB | MIT |
| 1.0.4 | 5 years ago | 10 KB | MIT |
| 1.0.3 | 5 years ago | 105 KB | MIT |
| 1.0.2 | 9 years ago | — | MIT |
| 1.0.1 | 10 years ago | — | MIT |
| 1.0.0 | 10 years ago | — | MIT |
| 0.0.6 | 10 years ago | — | MIT |
| 0.0.5 | 10 years ago | — | BSD-2-Clause |
| 0.0.3 | 12 years ago | — | BSD-2-Clause |
| 0.0.2 | 12 years ago | — | BSD-2-Clause |
| 0.0.1 | 12 years ago | — | BSD-2-Clause |
Overview
pgpass is an npm package that module for reading .pgpass. It is extremely widely used, with about 33M downloads per week and 1 known dependents in the graph. The latest version is 1.0.6, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need module for reading .pgpass and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (33M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use pgpass?
Yes — pgpass scores well across adoption, maintenance, weight, supply chain, and licensing. 33M downloads per week and 1 known dependents. Last published 81 days ago.
How do I install pgpass?
Run `npm install pgpass` to add pgpass to your npm project.
What license is pgpass released under?
pgpass is distributed under the MIT license.
How popular is pgpass?
pgpass has approximately 32,981,327 downloads per week and 1 known dependent packages.
Is pgpass still maintained?
The most recent release of pgpass (v1.0.6) was published 2 months ago.
Does pgpass run install scripts?
No. pgpass does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.