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

Function createChallengeFile

tools/challenge-helper-scripts/utils.ts:73–79  ·  view source on GitHub ↗
(
  filename: string,
  template: string,
  path = getProjectPath()
)

Source from the content-addressed store, hash-verified

71};
72
73const createChallengeFile = (
74 filename: string,
75 template: string,
76 path = getProjectPath()
77): void => {
78 fs.writeFileSync(`${path}${filename}.md`, template);
79};
80
81const createQuizFile = ({
82 challengeId,

Callers 6

utils.test.tsFile · 0.85
createNextTaskFunction · 0.85
createNextChallengeFunction · 0.85
insertChallengeFunction · 0.85
insertChallengeFunction · 0.85

Calls 1

getProjectPathFunction · 0.85

Tested by

no test coverage detected