MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / getCodeContent

Function getCodeContent

lib/code/index.ts:15–17  ·  view source on GitHub ↗
(lang: string, chapter: string)

Source from the content-addressed store, hash-verified

13export const CODE_FILES: Record<string, string> = codeData.codeFiles;
14
15export function getCodeContent(lang: string, chapter: string): string | undefined {
16 return CODE_FILES[`${lang}/${chapter}`];
17}
18
19export function getFirstChapter(lang: string): string | undefined {
20 return CODE_MANIFEST[lang]?.chapters[0];

Callers 3

resetToDefaultFunction · 0.90
TypingTestFunction · 0.90
useTypingTestFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected