Question : delete require cache
Answered by : aristeidis-pilianidis
//Use this if you want to require a file with updated contents,
//without restarting the Node js server
delete require.cache[require.resolve('./b.js')]
Source : https://stackoverflow.com/questions/15666144/how-to-remove-module-after-require-in-node-js | Last Update : Mon, 10 Jan 22