Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ilearnio/module-alias
/ getMainModule
Function
getMainModule
index.js:215–217 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
213
}
214
215
function
getMainModule () {
216
return
require.main._simulateRepl ? undefined : require.main
217
}
218
219
module.exports = init
220
module.exports.addPath = addPath
Callers
2
addPath
Function · 0.85
reset
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected