abuser
__filename
)
🤕 Create modifiers to require cache based on file path (e.g. Supported from node 10.12.0
The abuser
function accepts routes from which to resolve the modules as arguments
const abuser = ;const clean override reset = ;
override
: Override module exports value with any given thing (other than undefined
)
const override = __filename; ;
reset
: Reset module cache to intended values, recursively
const reset = __filename; const myThing = ;
clean
: Clean module and its dependencies from memory
const clean = __filename; ;
const override clean = __filename; ;