Jak ponownie załadować moduł w node.js
delete require.cache[require.resolve('./path-of-file')];
require('./path-of-file');
Inquisitive Ibex
delete require.cache[require.resolve('./path-of-file')];
require('./path-of-file');