mock-require 3.0.2
Simple, intuitive mocking of Node.js modules.
mock-require@3.0.2 was published on 2018-03-29. Its manifest declares 2 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >=4.3.0.
All mock-require versions · Permanent reference to 3.0.2 · Latest release
Package specifications
| Version | 3.0.2 |
|---|---|
| License declaration | MIT |
| Published | 2018-03-29T15:43:48.321Z |
| Node.js requirement | >=4.3.0 |
| Type declarations | Not declared |
| Runtime dependency count | 2 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 46.69 KiB |
| Published file count | 18 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 3 |
| Repository stars | 457 |
| Repository forks | 23 |
Install mock-require 3.0.2
npm install mock-require@3.0.2 pnpm add mock-require@3.0.2 yarn add mock-require@3.0.2
Runtime dependencies
- get-caller-file ^1.0.2
- normalize-path ^2.1.1
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.
- get-caller-file@1.0.3 — direct
- normalize-path@2.1.1 — direct
- remove-trailing-separator@1.1.0 — 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/3.0.2 — retrieved 2026-10-29T23:33:40.730Z
- 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/3.0.2:dependencies — retrieved 2026-10-29T23:33:41.288Z
- https://api.deps.dev/v3/systems/npm/packages/mock-require/versions/3.0.2 — retrieved 2026-10-29T23:33:41.299Z