Package
cjs-mock
NodeJS module mocking for CJS (CommonJS) modules for unit testing purposes.
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
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- jsDelivr
https://cdn.jsdelivr.net/npm/cjs-mock@3.1.0/ - unpkg
https://unpkg.com/cjs-mock@3.1.0/ - esm.sh
https://esm.sh/cjs-mock@3.1.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @automock/jest | 43.9k | - | 9 months ago | CommonJS | - |
| msw | 14.4m | - | 2 months ago | ESM + CommonJS | - |
| rewiremock | 45.3k | - | 1 year ago | ESM + CommonJS | - |
| @elastic/elasticsearch-mock | 51.6k | - | 1 year ago | CommonJS | - |
| @short.io/opensearch-mock | 23.9k | - | 2 years ago | CommonJS | - |
| miragejs | 264.2k | - | 2 years ago | ESM + CommonJS | - |
| msw-when-then | 8.8k | - | 5 years ago | CommonJS | - |
| sequelize-test-helpers | 6.9k | - | 4 years ago | CommonJS | - |
Indexability: Not indexed (discovery only): downloads_week 1297 < 10000.