Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/browserbase/stagehand
/ isMainModule
Function
isMainModule
packages/docs/scripts/runtimePaths.js:102–106 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
100
};
101
102
export
const
isMainModule = () => {
103
const
entryScript = process.argv.at(1);
104
if
(!entryScript)
return
false;
105
return
normalizePath(entryScript) === getCurrentFilePath();
106
};
Callers
1
normalize-v8-coverage.ts
File · 0.90
Calls
2
normalizePath
Function · 0.70
getCurrentFilePath
Function · 0.70
Tested by
no test coverage detected