MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / hasHttpServerImport

Function hasHttpServerImport

frontend/src/providers.ts:722–725  ·  view source on GitHub ↗
(fileText: string)

Source from the content-addressed store, hash-verified

720
721/** Check if a file's imports indicate it uses an HTTP server framework */
722export function hasHttpServerImport(fileText: string): boolean {
723 const lower = fileText.toLowerCase();
724 return HTTP_SERVER_PACKAGES.some(pkg => lower.includes(pkg));
725}
726
727/** Check if a file path matches a route file convention. Returns matching convention or null. */
728export function matchRouteFileConvention(filePath: string): typeof ROUTE_FILE_CONVENTIONS[0] | null {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected