MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / getChapters

Function getChapters

tools/challenge-helper-scripts/create-project.ts:244–253  ·  view source on GitHub ↗
(superBlock: string)

Source from the content-addressed store, hash-verified

242}
243
244async function getChapters(superBlock: string) {
245 const blockMetaFile = await fs.readFile(
246 '../../curriculum/structure/superblocks/' + superBlock + '.json',
247 { encoding: 'utf8' }
248 );
249 const blockMetaData = JSON.parse(
250 blockMetaFile
251 ) as ChapterModuleSuperblockStructure;
252 return blockMetaData.chapters;
253}
254
255async function getModules(superBlock: string, chapterName: string) {
256 const blockMetaFile = await fs.readFile(

Callers 1

create-project.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected