MCPcopy Index your code
hub / github.com/browserify/crypto-browserify / loadNodeModulesSync

Function loadNodeModulesSync

example/bundle.js:77–89  ·  view source on GitHub ↗
(x, start)

Source from the content-addressed store, hash-verified

75 }
76
77 function loadNodeModulesSync(x, start) {
78 var dirs = nodeModulesPathsSync(start);
79 for (var i = 0; i < dirs.length; i++) {
80 var dir = dirs[i];
81 var m = loadAsFileSync(dir + '/' + x);
82 if (m) { return m; }
83 var n = loadAsDirectorySync(dir + '/' + x);
84 if (n) { return n; }
85 }
86
87 var m = loadAsFileSync(x);
88 if (m) { return m; }
89 }
90
91 function nodeModulesPathsSync(start) {
92 var parts;

Callers 1

bundle.jsFile · 0.85

Calls 3

nodeModulesPathsSyncFunction · 0.85
loadAsFileSyncFunction · 0.85
loadAsDirectorySyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…