Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
import
{ promises as fs } from
'fs'
;
4
5
export
async
function
readFile(filePath: string) {
6
return
await
fs.readFile(process.cwd() +
'/'
+ filePath,
'utf-8'
);
7
}
Callers
1
fetchCode
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected