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

Method readFile

src/resolution/types.ts:131–131  ·  view source on GitHub ↗

Read file content

(filePath: string)

Source from the content-addressed store, hash-verified

129 fileExists(filePath: string): boolean;
130 /** Read file content */
131 readFile(filePath: string): string | null;
132 /** `readFile(filePath)?.includes(needle) ?? false` for an ASCII `needle`, without decoding a file that lacks it. */
133 fileContains?(filePath: string, needle: string): boolean;
134 /**

Callers 15

readGrammarWasmBytesFunction · 0.80
cppNonCodeLinesFunction · 0.80
statedDefaultExportFunction · 0.80
commonJsDefaultExportFunction · 0.80
hasEsmDefaultExportFunction · 0.80
exportedByNameFunction · 0.80
declaredPythonRootsFunction · 0.80
pythonStarExportsFunction · 0.80
isBrowserCodeFunction · 0.80
typeQualifierFunction · 0.80
resolveViaImportFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected