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

Function readFileContent

src/utils/__tests__/safeWriteJson.test.ts:90–93  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

88
89 // Helper function to read file content
90 async function readFileContent(filePath: string): Promise<any> {
91 const readContent = await fs.readFile(filePath, "utf-8")
92 return JSON.parse(readContent)
93 }
94
95 // Helper function to check if a file exists
96 async function fileExists(filePath: string): Promise<boolean> {

Callers 1

Calls 2

parseMethod · 0.80
readFileMethod · 0.45

Tested by

no test coverage detected