Package
mock-require-lazy
Mock CommonJS require and native ESM import, together or separately, with lazy factories. A drop-in replacement for mock-require
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 4.8k
- +254% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- -
- v3.0.0
- GitHub stars
- 0
- 0 forks
- Open issues / PRs
- 0 / 1
- Contributors
- -
- Commits, last 52 weeks
- 127
Downloads
Last week 2026-09-15 to 2026-09-21
4,771 downloads last week, 11,128 in the last month. The 12-month change of +254% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 3.0.0
- First published
- -
- Last push to GitHub
- 21 Sept 20264 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 1
- Commits, last 52 weeks
- 127
- Dependents on npm
- -
Major versions
-
Recent releases
-
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=0.8
- Runtimes
- -
- Unpacked size (npm)
- 172 kB
- Dependencies (2)
normalize-pathget-caller-file
npm install mock-require-lazy- jsDelivr
https://cdn.jsdelivr.net/npm/mock-require-lazy@3.0.0/ - unpkg
https://unpkg.com/mock-require-lazy@3.0.0/ - esm.sh
https://esm.sh/mock-require-lazy@3.0.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| proxyquire | 938.1k | - | 7 years ago | CommonJS | - |
| mock-require | 231.6k | - | 7 years ago | CommonJS | - |
| babel-plugin-explicit-exports-references | 5.4k | - | 4 years ago | CommonJS | - |
| strong-mock | 23.3k | - | 4 months ago | ESM + CommonJS | - |
| ts-mockito | 172k | - | 6 years ago | CommonJS | - |
| jest-chrome | 24.6k | - | 3 years ago | ESM + CommonJS | - |
| typemoq | 38.2k | - | 8 years ago | CommonJS | - |
| ts-jest-mock | 26k | - | 2 years ago | ESM + CommonJS | - |
Indexability: Not indexed (discovery only): downloads_week 4771 < 10000.