@std/front-matter@1.0.9Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdWorks with
•JSR Score88%•This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




Downloads3,749/wk
•Published11 months ago (1.0.9)
Extract front matter from strings
Functions
Type Aliases
T
Extract<T> = { frontMatter: string; body: string; attrs: T; }
Return type for extract function.
- attrs: TNo documentation available
- body: stringNo documentation available
- frontMatter: stringNo documentation available
T
Format = "yaml" | "toml" | "json"
Supported format for front matter. "unknown" is used when auto format
detection logic fails.
Add Package
deno add jsr:@std/front-matter
Import symbol
import * as mod from "@std/front-matter";
Import directly with a jsr specifier
import * as mod from "jsr:@std/front-matter";