MCPcopy
hub / github.com/QwikDev/qwik / readFile

Function readFile

packages/docs/codesandbox.sync.ts:33–41  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

31}
32
33function readFile(path: string) {
34 try {
35 const file = readFileSync(path, 'utf-8');
36 return file.split('\n');
37 } catch (e) {
38 console.error('Error reading file: ' + path);
39 throw e;
40 }
41}
42
43function findCodeSandboxes(
44 codeSandboxTransformFn: (mdxPath: string, srcPath: string, lines: string[]) => string[],

Callers 14

readPackageJsonFunction · 0.90
submoduleCoreProdFunction · 0.90
buildOptimizerFunction · 0.90
validateBuildFunction · 0.90
submoduleQwikLoaderFunction · 0.90
getLoaderJsonStringFunction · 0.90
qwik.unit.tsFile · 0.85
loadQwikInsightsFunction · 0.85
qwikInsightsFunction · 0.85
transformFileFunction · 0.85
syncCodeSandboxFunction · 0.85
fileSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…