MCPcopy Create free account
hub / github.com/GCWing/BitFun / readText

Function readText

tests/e2e/scripts/perf-coverage-contract.test.mjs:9–11  ·  view source on GitHub ↗
(relativePath)

Source from the content-addressed store, hash-verified

7const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..', '..');
8
9function readText(relativePath) {
10 return fs.readFileSync(path.join(root, relativePath), 'utf8');
11}
12
13function readJson(relativePath) {
14 return JSON.parse(readText(relativePath));

Callers 2

readJsonFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected