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

Function routeNames

__tests__/react-router.test.ts:860–860  ·  view source on GitHub ↗
(cg: CodeGraph)

Source from the content-addressed store, hash-verified

858}
859
860const routeNames = (cg: CodeGraph): string[] => cg.getNodesByKind('route').map((r) => r.name).sort();
861
862const component = (name: string): string => `export function ${name}() {\n return <div>${name}</div>;\n}\n`;
863

Callers 1

Calls 2

mapMethod · 0.80
getNodesByKindMethod · 0.65

Tested by

no test coverage detected