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

Function loadAsFileSync

example/bundle.js:45–54  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

43 throw new Error("Cannot find module '" + x + "'");
44
45 function loadAsFileSync(x) {
46 if (require.modules[x]) {
47 return x;
48 }
49
50 for (var i = 0; i < require.extensions.length; i++) {
51 var ext = require.extensions[i];
52 if (require.modules[x + ext]) { return x + ext; }
53 }
54 }
55
56 function loadAsDirectorySync(x) {
57 x = x.replace(/\/+$/, '');

Callers 3

bundle.jsFile · 0.85
loadAsDirectorySyncFunction · 0.85
loadNodeModulesSyncFunction · 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…