MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / readFile

Function readFile

src/lib/readFile.ts:5–7  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

3import { promises as fs } from 'fs';
4
5export async function readFile(filePath: string) {
6 return await fs.readFile(process.cwd() + '/' + filePath, 'utf-8');
7}

Callers 1

fetchCodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected