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

Function readUserFile

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

Source from the content-addressed store, hash-verified

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');
9export const CODE_JAVA = readUserFile('skeletons/code.java');

Callers 1

index.jsFile · 0.85

Calls 3

createUserFileFunction · 0.90
getNameFunction · 0.85
getContentFunction · 0.85

Tested by

no test coverage detected