You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Rich Trott 2981f24f92 tools: update ESLint to v3.8.0 8 years ago
..
index.js tools: update ESLint to 2.7.0 9 years ago
package.json tools: update ESLint to v3.8.0 8 years ago
readme.md tools: update ESLint to 2.7.0 9 years ago

readme.md

require-uncached Build Status

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.js
var i = 0;
module.exports = function () {
	return ++i;
};
var requireUncached = require('require-uncached');

require('./foo')();
//=> 1

require('./foo')();
//=> 2

requireUncached('./foo')();
//=> 1

requireUncached('./foo')();
//=> 1

License

MIT © Sindre Sorhus