MCPcopy 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

1export function getDirnameDynamically(): string | undefined {
2 return new Function(
3 `try { return __dirname; } catch (e) { return undefined; }`,
4 )()
5}

Callers 1

resolveWasmPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected