isFrontmatterValid() — astro Function Reference
Architecture documentation for the isFrontmatterValid() function in frontmatter.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 92f1f290_67a1_1f52_12f9_09b4024c3e1e["isFrontmatterValid()"] 527bec49_26ec_0a56_3702_bf73cfac4e0b["frontmatter.ts"] 92f1f290_67a1_1f52_12f9_09b4024c3e1e -->|defined in| 527bec49_26ec_0a56_3702_bf73cfac4e0b style 92f1f290_67a1_1f52_12f9_09b4024c3e1e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/markdown/remark/src/frontmatter.ts lines 4–12
export function isFrontmatterValid(frontmatter: Record<string, any>) {
try {
// ensure frontmatter is JSON-serializable
JSON.stringify(frontmatter);
} catch {
return false;
}
return typeof frontmatter === 'object' && frontmatter !== null;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does isFrontmatterValid() do?
isFrontmatterValid() is a function in the astro codebase, defined in packages/markdown/remark/src/frontmatter.ts.
Where is isFrontmatterValid() defined?
isFrontmatterValid() is defined in packages/markdown/remark/src/frontmatter.ts at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free