Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to reload a module in node.js

delete require.cache[require.resolve('./path-of-file')];
require('./path-of-file');
 
PREVIOUS NEXT
Tagged: #reload #module
ADD COMMENT
Topic
Name
6+9 =