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

Function getContent

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

Source from the content-addressed store, hash-verified

2
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

Callers 2

readProjectFileFunction · 0.85
readUserFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected