delete-node-require-cache

JSON →
library 1.9.0 ·javascript
verified Jun 7, 2026

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.