MCPcopy
hub / github.com/webfansplz/vuejs-challenges / loadFile

Function loadFile

scripts/loader.ts:11–15  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

9import { normalizeStackBlitzLink } from "./stackblitz"
10
11export async function loadFile(filepath: string) {
12 if (fs.existsSync(filepath))
13 return await fs.readFile(filepath, "utf-8")
14 return undefined
15}
16
17export async function loadLocaleVariations<T = string>(
18 filepath: string,

Callers 2

loadLocaleVariationsFunction · 0.85
loadQuizFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected