MCPcopy Create free account
hub / github.com/electric-sql/electric / parsePostFrontmatter

Function parsePostFrontmatter

website/data/posts.data.ts:6–8  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

4import type { PostFrontmatter, PostListRow } from '../src/types/data-loaders'
5
6function parsePostFrontmatter(raw: string): PostFrontmatter {
7 return parse(raw) as PostFrontmatter
8}
9
10export default {
11 watch: [`../blog/posts/*.md`],

Callers 1

loadFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected