</>PackageGraphPackageGraph

pgpass

npmv1.0.6

Module 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

10 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
pgpassthis page33M1MIT2 months ago
pg46.3M5MIT1 day ago
drizzle-orm19M0Apache-2.01 day ago
postgres01Unlicense1 day ago
pg-pool43.5M1MIT1 day ago
kysely15.6M1MIT1 day ago

Dependencies

Declared by pgpass v1.0.6. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (9)

jshint ^2.13.6mocha ^11.3.0nyc ^18.0.0pg ^8.22.0pg-escape ^0.2.0pg-native 3.8.0resumer 0.0.0tmp ^0.2.7which ^2.0.2

Used by

Popular packages that depend on pgpass.

Relationship graph

Dependencies (left) and dependents (right) of pgpass.

pgpgpass
pgpass dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 81 days apart.

Recent versions of pgpass
VersionPublishedSizeLicense
1.0.6latest2 months ago10 KBMIT
1.0.54 years ago10 KBMIT
1.0.45 years ago10 KBMIT
1.0.35 years ago105 KBMIT
1.0.29 years agoMIT
1.0.110 years agoMIT
1.0.010 years agoMIT
0.0.610 years agoMIT
0.0.510 years agoBSD-2-Clause
0.0.312 years agoBSD-2-Clause
0.0.212 years agoBSD-2-Clause
0.0.112 years agoBSD-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

Keywords

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.