Node.js: refreshing a module using require.cache
Nov 17, 2024 路 5 min read 路 This is purely in reference to CommonJS modules. TLDR Before I bore you with why I did this, refreshing a module can be done by deleting its reference in the require.cache object. Like so: require('./some-module') // use module delete require.cach...
Join discussion













