Skip to content
JS
Package

injectmock

Inject mock and restore original for javascript property. Useful for unit testing.

v2.0.0MITCommonJSTypes: NoneTesting
$ npm install injectmock

Key numbers

As of 25 Sept 2026
Weekly downloads
117
- over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
-
v2.0.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

No weekly download data in the snapshot.

117 downloads last week, 302 in the last month. No 52-week series has been fetched yet.

Releases, last 12 months
-
Latest version
2.0.0
First published
-
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=6
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install injectmock
  • jsDelivrhttps://cdn.jsdelivr.net/npm/injectmock@2.0.0/
  • unpkghttps://unpkg.com/injectmock@2.0.0/
  • esm.shhttps://esm.sh/injectmock@2.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
@vitest/mocker71.9m-9 days agoESM only-
mockdate2m-5 years agoCommonJS-
pusher-js-mock88k-1 year agoCommonJS-
mocked-env75.4k-5 years agoCommonJS-
muk-prop17.1k-3 years agoCommonJS-
hock5.3k-6 years agoCommonJS-
Sources: npm registry. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 117 < 10000; GitHub data not fetched yet.