MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / getBlockStructure

Function getBlockStructure

curriculum/src/file-handler.ts:190–194  ·  view source on GitHub ↗
(block: string)

Source from the content-addressed store, hash-verified

188}
189
190export function getBlockStructure(block: string) {
191 return JSON.parse(
192 readFileSync(getBlockStructurePath(block), 'utf8')
193 ) as BlockStructure;
194}
195
196export async function writeBlockStructure(block: string, structure: unknown) {
197 // dynamically importing prettier because Gatsby build and develop fail when

Callers 5

renameBlockFunction · 0.90
getMetaDataFunction · 0.90
defineTestsForBlockFunction · 0.85

Calls 1

getBlockStructurePathFunction · 0.85

Tested by

no test coverage detected