MCPcopy Create free account
hub / github.com/fontsource/fontsource / pathExists

Function pathExists

registry/scripts/shared.ts:52–60  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

50 `${value.replaceAll('\r\n', '\n').trimEnd()}\n`;
51
52export const pathExists = async (path: string): Promise<boolean> => {
53 try {
54 await access(path);
55 return true;
56 } catch (error) {
57 if ((error as NodeJS.ErrnoException).code === 'ENOENT') return false;
58 throw error;
59 }
60};

Callers 6

generateNamFunction · 0.90
writeFamilyFunction · 0.90
validateFamilyFunction · 0.90
listFamilyKeysFunction · 0.90
listSubsetIdsFunction · 0.90
validateRegistryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected