Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CodebuffAI/codebuff
/ getDirnameDynamically
Function
getDirnameDynamically
packages/code-map/src/utils.ts:1–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
export
function
getDirnameDynamically(): string | undefined {
2
return
new
Function(
3
`try {
return
__dirname; } catch (e) {
return
undefined; }`,
4
)()
5
}
Callers
1
resolveWasmPath
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected