Node.js: using fs.watch to re-import CommonJS modules.
Disclaimer. This is an investigation into what is possible. Not a fully-blown solution into how to reload modules without restarting the whole server. In a previous article, I was investigating how to use require.cache to refresh a module by deletin...
Nov 17, 20243 min read240
