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

Function getId

api/metadata/src/fonts/get.ts:19–26  ·  view source on GitHub ↗
(id: string, env: Env, ctx: ExecutionContext)

Source from the content-addressed store, hash-verified

17};
18
19const getId = async (id: string, env: Env, ctx: ExecutionContext) => {
20 const data = await getMetadata(env, ctx);
21 if (!data[id]) {
22 return;
23 }
24
25 return data[id];
26};
27
28export { getArrayMetadata, getId };

Callers 2

router.tsFile · 0.90
router.tsFile · 0.90

Calls 1

getMetadataFunction · 0.90

Tested by

no test coverage detected