MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / loadTalks

Function loadTalks

code/solutions/21_1_disk_persistence.mjs:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17};
18
19function loadTalks() {
20 try {
21 return JSON.parse(readFileSync(fileName, "utf8"));
22 } catch (e) {
23 return {};
24 }
25}
26
27// The line that starts the server must be changed to
28new SkillShareServer(loadTalks()).start(8000);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected