MCPcopy Create free account
hub / github.com/Zeltoria/Clara-MD / read

Method read

lib/lowdb/adapters/JSONFile.js:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4 this.adapter = new TextFile(filename);
5 }
6 async read() {
7 const data = await this.adapter.read();
8 if (data === null) {
9 return null;
10 }
11 else {
12 return JSON.parse(data);
13 }
14 }
15 write(obj) {
16 return this.adapter.write(JSON.stringify(obj, null, 2));
17 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected