mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-28 23:01:57 -04:00
9 lines
382 B
TypeScript
9 lines
382 B
TypeScript
import { readFileSync } from 'node:fs';
|
|
import { join } from 'node:path';
|
|
|
|
const CURRICULUM_PATH = '../../curriculum/generated/curriculum.json';
|
|
|
|
// Curriculum is read using fs, because it is too large for VSCode's LSP to handle type inference which causes annoying behavior.
|
|
export const getCurriculum = () =>
|
|
JSON.parse(readFileSync(join(__dirname, CURRICULUM_PATH), 'utf-8'));
|