decache
JSON →decache is a lightweight utility (v4.6.2, stable, low maintenance) that deletes a module from Node.js require.cache, enabling fresh require() calls for testing or hot-reloading. It works with .js, .json, and other extensions, but ignores native .node modules. Unlike alternatives that require hacking require.cache directly, decache handles edge cases (e.g., parent module references) and includes TypeScript definitions. Released under MIT, with a small footprint and no dependencies.
Traffic · last 30 days stale · no recent hits
total hits 16
actors 5 distinct systems
last hit 17d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇫🇮 Finland