Skip to content
JS
Package

mock-require-lazy

Mock CommonJS require and native ESM import, together or separately, with lazy factories. A drop-in replacement for mock-require

v3.0.0MITESM + CommonJSTypes: BundledTestingTypeScript tooling
$ npm install mock-require-lazy

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
02k4k6k8kSept 2025Mar 2026Sept 2026High 6.4k (21 Jul 2026)Low 471 (30 Sept 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mock-require-lazy@3.0.0/
  • unpkghttps://unpkg.com/mock-require-lazy@3.0.0/
  • esm.shhttps://esm.sh/mock-require-lazy@3.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
proxyquire938.1k-7 years agoCommonJS-
mock-require231.6k-7 years agoCommonJS-
babel-plugin-explicit-exports-references5.4k-4 years agoCommonJS-
strong-mock23.3k-4 months agoESM + CommonJS-
ts-mockito172k-6 years agoCommonJS-
jest-chrome24.6k-3 years agoESM + CommonJS-
typemoq38.2k-8 years agoCommonJS-
ts-jest-mock26k-2 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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