mock-require 2.0.2
Simple, intuitive mocking of Node.js modules.
mock-require@2.0.2 was published on 2017-04-04. Its manifest declares 1 runtime dependency and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >=0.10.
All mock-require versions · Permanent reference to 2.0.2 · Latest release
Package specifications
| Version | 2.0.2 |
|---|---|
| License declaration | MIT |
| Published | 2017-04-04T13:48:55.798Z |
| Node.js requirement | >=0.10 |
| Type declarations | Not declared |
| Runtime dependency count | 1 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | Not supplied |
| Published file count | Not supplied |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 2 |
| Repository stars | 457 |
| Repository forks | 23 |
Install mock-require 2.0.2
npm install mock-require@2.0.2 pnpm add mock-require@2.0.2 yarn add mock-require@2.0.2
Runtime dependencies
- caller-id ^0.1.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- caller-id@0.1.0 — direct
- stack-trace@0.0.10 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 2/10 — Found 5/24 approved changesets -- score normalized to 2 |
|---|---|
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Maintained | 0/10 — project is archived |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Security-Policy | 0/10 — security policy file not detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/mock-require/2.0.2 — retrieved 2026-10-29T23:33:38.856Z
- https://api.deps.dev/v3/projects/github.com%2Fboblauer%2Fmock-require — retrieved 2026-10-29T21:45:39.122Z
- https://api.deps.dev/v3/systems/npm/packages/mock-require/versions/2.0.2:dependencies — retrieved 2026-10-29T23:33:39.400Z
- https://api.deps.dev/v3/systems/npm/packages/mock-require/versions/2.0.2 — retrieved 2026-10-29T23:33:39.404Z