MCPcopy Create free account
hub / github.com/dcrousso/GroupMe / readData

Function readData

modules/Storage.js:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const dataPath = path.join(electron.app.getPath("userData"), "data.json");
6
7function readData() {
8 try {
9 return JSON.parse(filesystem.readFileSync(dataPath, "utf8"));
10 } catch (error) {
11 }
12 return {};
13}
14
15exports.set = (key, val) => {
16 const data = readData();

Callers 1

Storage.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected