MCPcopy
hub / github.com/liabru/matter-js / requireUncached

Function requireUncached

test/TestTools.js:330–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328};
329
330const requireUncached = path => {
331 delete require.cache[require.resolve(path)];
332 const module = require(path);
333 delete require.cache[require.resolve(path)];
334 return module;
335};
336
337const getArg = (name, defaultValue=null, parser=(v) => v) => {
338 const value = process.argv.find(arg => arg.startsWith(`--${name}=`));

Callers 3

Examples.spec.jsFile · 0.85
runExampleFunction · 0.85
prepareMatterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…