Skip to content
JS
Package

cjs-mock

NodeJS module mocking for CJS (CommonJS) modules for unit testing purposes.

v3.1.0, 28 May 2025No license fieldCommonJSTypes: BundledDev servers and API mockingTesting
$ npm install cjs-mock

Key numbers

As of 25 Sept 2026
Weekly downloads
1.3k
+23% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
1 year ago
v3.1.0
GitHub stars
6
0 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01k2k3kSept 2025Mar 2026Sept 2026High 2.2k (26 May 2026)Low 174 (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,297 downloads last week, 5,368 in the last month. The 12-month change of +23% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
3.1.0, 28 May 20251 year ago
First published
-
Last push to GitHub
28 May 2025485 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
1

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
19 kB
Dependencies (3)
stubfncallsitescolorette
npm install cjs-mock
  • jsDelivrhttps://cdn.jsdelivr.net/npm/cjs-mock@3.1.0/
  • unpkghttps://unpkg.com/cjs-mock@3.1.0/
  • esm.shhttps://esm.sh/cjs-mock@3.1.0
PackageWeekly downloadsGzipLast releaseModuleComparison
@automock/jest43.9k-9 months agoCommonJS-
msw14.4m-2 months agoESM + CommonJS-
rewiremock45.3k-1 year agoESM + CommonJS-
@elastic/elasticsearch-mock51.6k-1 year agoCommonJS-
@short.io/opensearch-mock23.9k-2 years agoCommonJS-
miragejs264.2k-2 years agoESM + CommonJS-
msw-when-then8.8k-5 years agoCommonJS-
sequelize-test-helpers6.9k-4 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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