MCPcopy Create free account
hub / github.com/codesandbox/excalidraw-firebase / tryReadFile

Function tryReadFile

.pnp.cjs:11823–11831  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

11821 return null;
11822 }
11823 function tryReadFile(filePath) {
11824 try {
11825 return opts.fakeFs.readFileSync(npath.toPortablePath(filePath), `utf8`);
11826 } catch (err) {
11827 if (err.code === `ENOENT`)
11828 return void 0;
11829 throw err;
11830 }
11831 }
11832 function resolveToUnqualified(request, issuer, { considerBuiltins = true } = {}) {
11833 if (request.startsWith(`#`))
11834 throw new Error(`resolveToUnqualified can not handle private import mappings`);

Callers

nothing calls this directly

Calls 1

readFileSyncMethod · 0.45

Tested by

no test coverage detected