store() — astro Function Reference
Architecture documentation for the store() function in config.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 9d5599b6_08fa_90b0_54c3_7f4b15aaec38["store()"] fef0c5f1_0353_567c_a80e_149e04466a6f["GlobalConfig"] 9d5599b6_08fa_90b0_54c3_7f4b15aaec38 -->|defined in| fef0c5f1_0353_567c_a80e_149e04466a6f 8bfd8863_ff85_cd7c_4056_ab4a176e58ab["ensureDir()"] 9d5599b6_08fa_90b0_54c3_7f4b15aaec38 -->|calls| 8bfd8863_ff85_cd7c_4056_ab4a176e58ab 09d19e93_c3b2_b72b_a1e5_79df795a76f9["write()"] 9d5599b6_08fa_90b0_54c3_7f4b15aaec38 -->|calls| 09d19e93_c3b2_b72b_a1e5_79df795a76f9 style 9d5599b6_08fa_90b0_54c3_7f4b15aaec38 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/telemetry/src/config.ts lines 45–58
private get store(): Record<string, any> {
if (this._store) return this._store;
this.ensureDir();
if (fs.existsSync(this.file)) {
try {
this._store = JSON.parse(fs.readFileSync(this.file).toString());
} catch {}
}
if (!this._store) {
this._store = {};
this.write();
}
return this._store;
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does store() do?
store() is a function in the astro codebase, defined in packages/telemetry/src/config.ts.
Where is store() defined?
store() is defined in packages/telemetry/src/config.ts at line 45.
What does store() call?
store() calls 2 function(s): ensureDir, write.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free