MCPcopy Index your code
hub / github.com/nodejs/node / isUnderNodeModules

Function isUnderNodeModules

lib/internal/util.js:543–545  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

541const kNodeModulesRE = /^(?:.*)[\\/]node_modules[\\/]/;
542
543function isUnderNodeModules(filename) {
544 return filename && (RegExpPrototypeExec(kNodeModulesRE, filename) !== null);
545}
546
547let getStructuredStackImpl;
548

Callers 4

loadESMFromCJSFunction · 0.85
maybeCacheSourceMapFunction · 0.85
findSourceMapFunction · 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…