Answers for "how to reload a module in node.js"

1

how to reload a module in node.js

delete require.cache[require.resolve('./path-of-file')];
require('./path-of-file');
Posted by: Guest on December-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language