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

Method fileContains

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

`readFile(filePath)?.includes(needle) ?? false` for an ASCII `needle`, without decoding a file that lacks it.

(filePath: string, needle: string)

Source from the content-addressed store, hash-verified

133 noteModuleConfigFile?(filePath: string): void;
134 /** `readFile(filePath)?.includes(needle) ?? false` for an ASCII `needle`, without decoding a file that lacks it. */
135 fileContains?(filePath: string, needle: string): boolean;
136 /**
137 * An indexed file's text for a walk over all of them, which keeps none: it
138 * stays out of the content cache, and each byte is a character, so anything

Callers 10

commonJsDefaultExportFunction · 0.65
angularComponentsFunction · 0.65
isDefinedInFunction · 0.65
linkWrappersFunction · 0.65
scannedFunction · 0.65
libraryFilesNamedFunction · 0.65
angularMountsFunction · 0.65
postExtractFunction · 0.65
postExtractFunction · 0.65
postExtractFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected