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.