A Node.js library (v1.9.0, stable) to clear the require cache for a specified JS file, including parsing and removing cache for its internal dependencies. Useful for hot-reloading or testing scenarios where cached modules must be invalidated. Ships TypeScript types. Minimal overhead with no runtime dependencies. Activates on first call, with subsequent calls being no-ops.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
The package exports a named function, not a default export.
CommonJS requires destructuring because the export is a named object.
Type import for TypeScript projects when only using the type (e.g., typeof).
Demonstrates importing and using delRequireCache to clear the require cache for a specific file.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.