{"library":"require-and-forget","type":"library","category":null,"description":"Require a Node module and immediately delete it from the module cache, forcing re-evaluation on the next require call. v1.0.1 is the latest stable version (no updates since 2017). Useful for testing scenarios where you need fresh module state (e.g., random values, mutable singletons). Key differentiator: lightweight and focused solely on cache eviction, unlike heavier testing utilities. Works with Node >=6, CommonJS only.","language":"javascript","status":"maintenance","version":"1.0.1","tags":["javascript","cache","load","loading","node","npm","purge","require","util"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install require-and-forget","imports":["const forget = require('require-and-forget')"]},{"cmd":"yarn add require-and-forget","imports":[]},{"cmd":"pnpm add require-and-forget","imports":[]}],"homepage":"https://github.com/bahmutov/require-and-forget#readme","github":"https://github.com/bahmutov/require-and-forget","docs":null,"changelog":null,"pypi":null,"npm":"require-and-forget","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}