idFromProvider() — astro Function Reference
Architecture documentation for the idFromProvider() function in unifont-font-resolver.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 86803e41_45ca_a354_b3e0_fd9a88d03563["idFromProvider()"] e75025f8_1303_03ea_42ce_653194e50374["UnifontFontResolver"] 86803e41_45ca_a354_b3e0_fd9a88d03563 -->|defined in| e75025f8_1303_03ea_42ce_653194e50374 9f4d1ee9_7723_97a0_a304_0a2525104e5b["extractUnifontProviders()"] 9f4d1ee9_7723_97a0_a304_0a2525104e5b -->|calls| 86803e41_45ca_a354_b3e0_fd9a88d03563 40582598_ddaf_bc56_1d35_6346d14bd03c["resolveFont()"] 40582598_ddaf_bc56_1d35_6346d14bd03c -->|calls| 86803e41_45ca_a354_b3e0_fd9a88d03563 45f5b03a_8e0e_9fc6_197c_a482452c81b0["listFonts()"] 45f5b03a_8e0e_9fc6_197c_a482452c81b0 -->|calls| 86803e41_45ca_a354_b3e0_fd9a88d03563 style 86803e41_45ca_a354_b3e0_fd9a88d03563 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/assets/fonts/infra/unifont-font-resolver.ts lines 23–29
static idFromProvider({ hasher, provider }: { hasher: Hasher; provider: FontProvider }): string {
const hash = hasher.hashObject({
name: provider.name,
...provider.config,
});
return `${provider.name}-${hash}`;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does idFromProvider() do?
idFromProvider() is a function in the astro codebase, defined in packages/astro/src/assets/fonts/infra/unifont-font-resolver.ts.
Where is idFromProvider() defined?
idFromProvider() is defined in packages/astro/src/assets/fonts/infra/unifont-font-resolver.ts at line 23.
What calls idFromProvider()?
idFromProvider() is called by 3 function(s): extractUnifontProviders, listFonts, resolveFont.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free