reload node module code example
Example: how to reload a module in node.js
delete require.cache[require.resolve('./path-of-file')];
require('./path-of-file');
delete require.cache[require.resolve('./path-of-file')];
require('./path-of-file');