Skip to content

Instantly share code, notes, and snippets.

@wondger
Created October 12, 2012 08:56
Show Gist options
  • Save wondger/3878175 to your computer and use it in GitHub Desktop.
Save wondger/3878175 to your computer and use it in GitHub Desktop.
reload nodejs module without cache
function foreRequire(module) {
delete require.cache[path.resolve(module)];
return require(module);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment