Skip to content
JS
Package

pgmock2

An NPM module for mocking a connection to a PostgreSQL database.

v2.1.7MITCommonJSTypes: BundledTesting
$ npm install pgmock2

Key numbers

As of 25 Sept 2026
Weekly downloads
1.9k
-5% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
-
v2.1.7
GitHub stars
9
8 forks
Open issues / PRs
2 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02k4k6k8kSept 2025Mar 2026Sept 2026High 6.9k (9 Jun 2026)Low 737 (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,933 downloads last week, 9,867 in the last month. The 12-month change of -5% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.1.7
First published
-
Last push to GitHub
18 Feb 2025583 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=12.16.1
Runtimes
-
Unpacked size (npm)
32 kB
Dependencies (2)
pgmd5
npm install pgmock2
  • jsDelivrhttps://cdn.jsdelivr.net/npm/pgmock2@2.1.7/
  • unpkghttps://unpkg.com/pgmock2@2.1.7/
  • esm.shhttps://esm.sh/pgmock2@2.1.7
PackageWeekly downloadsGzipLast releaseModuleComparison
@golevelup/ts-jest382.5k-6 months agoCommonJS-
@inngest/test282.1k-6 months agoESM + CommonJS-
@golevelup/ts-sinon9.2k-6 months agoCommonJS-
@golevelup/ts-vitest72.7k-6 months agoESM only-
vitest-environment-prisma-postgres6.1k-3 months agoESM + CommonJS-
@stryker-mutator/api1.8m-1 month agoESM only-
@stryker-mutator/core1.8m-1 month agoESM only-
pg-mem377.4k-6 months agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 1933 < 10000.