MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / defaultExportBinding

Function defaultExportBinding

src/resolution/alias-binding.ts:159–162  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

157 * identifier is no binding of the module's.
158 */
159export function defaultExportBinding(content: string): string | null {
160 return /(?:^|;)\s*export\s+default\s+([A-Za-z_$][\w$]*)\s*(?:;|$)/m.exec(content)?.[1] ??
161 extractLocalExportAliases(content).find((a) => a.exportedName === 'default')?.localName ?? null;
162}

Callers 2

exportsOfFunction · 0.90
exportsBindingFunction · 0.90

Calls 2

execMethod · 0.65

Tested by

no test coverage detected