MCPcopy Create free account
hub / github.com/algorithm-visualizer/algorithm-visualizer / readProjectFile

Function readProjectFile

src/files/index.js:5–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3const getName = filePath => filePath.split('/').pop();
4const getContent = filePath => require('!raw-loader!./' + filePath).default;
5const readProjectFile = filePath => createProjectFile(getName(filePath), getContent(filePath));
6const readUserFile = filePath => createUserFile(getName(filePath), getContent(filePath));
7
8export const CODE_CPP = readUserFile('skeletons/code.cpp');

Callers 1

index.jsFile · 0.85

Calls 3

createProjectFileFunction · 0.90
getNameFunction · 0.85
getContentFunction · 0.85

Tested by

no test coverage detected