require-uncached
Require a module bypassing the cache
Useful for testing purposes when you need to freshly require a module.
Install
$ npm install --save require-uncached
Usage
// foo.jslet i = 0;module ++i;
const requireUncached = ; ;//=> 1 ;//=> 2 ;//=> 1 ;//=> 1
Related
- clear-require - Clear a module from the require cache
License
MIT © Sindre Sorhus