MCPcopy Index your code
hub / github.com/CapSoftware/Cap / loadTinybFile

Function loadTinybFile

scripts/analytics/shared.js:88–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88function loadTinybFile() {
89 for (const candidate of TINYB_FILE_CANDIDATES) {
90 try {
91 if (fs.existsSync(candidate)) {
92 const raw = fs.readFileSync(candidate, "utf8");
93 const data = JSON.parse(raw);
94 return { path: candidate, data };
95 }
96 } catch {
97 // ignore malformed files and continue
98 }
99 }
100 return null;
101}
102
103function resolveTinybirdAuth() {
104 const envHost = process.env.TINYBIRD_HOST?.trim();

Callers 1

resolveTinybirdAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected