htc 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 2 недеља
..
index.js 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 2 недеља
license 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 2 недеља
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 2 недеља
readme.md 7ca38fdcbb 善行少年PC端首次提交(基础版) пре 2 недеља

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
let i = 0;
module.exports = () => ++i;
const requireUncached = require('require-uncached');

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

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

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

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

Related

License

MIT © Sindre Sorhus