Gemma Blackgemmablack.devยทNov 17, 2024Node.js: refreshing a module using require.cacheThis 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...require.cacheAdd a thoughtful commentNo comments yetBe the first to start the conversation.