Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / parseFrontmatter
Function: parseFrontmatter()
ts
function parseFrontmatter(frontmatter): Record<string, unknown>;Defined in: packages/security/src/supply-chain/frontmatter.ts:52
Parse the YAML frontmatter into a plain object. Returns {} for an empty block.
Parameters
| Parameter | Type |
|---|---|
frontmatter | string |
Returns
Record<string, unknown>