MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / readAsText

Function readAsText

src/fileSystem/externalFs.js:14–19  ·  view source on GitHub ↗
(url, encoding)

Source from the content-addressed store, hash-verified

12 },
13
14 async readAsText(url, encoding) {
15 url = await this.formatUri(url);
16 return new Promise((resolve, reject) => {
17 sdcard.readAsText(url, encoding, resolve, reject);
18 });
19 },
20
21 async writeFile(filename, data) {
22 return new Promise(async (resolve, reject) => {

Callers

nothing calls this directly

Calls 2

readAsTextMethod · 0.80
formatUriMethod · 0.65

Tested by

no test coverage detected