MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / extractTextFromFile

Function extractTextFromFile

src/integrations/misc/extract-text.ts:131–134  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

129 * @throws {Error} If file not found or unsupported binary format
130 */
131export async function extractTextFromFile(filePath: string): Promise<string> {
132 const result = await extractTextFromFileWithMetadata(filePath)
133 return result.content
134}
135
136export function addLineNumbers(content: string, startLine: number = 1): string {
137 // If content is empty, return empty string - empty files should not have line numbers

Callers 2

handleBinaryFileMethod · 0.90

Calls 1

Tested by

no test coverage detected