vibe-rules
Version:
A utility for managing Cursor rules, Windsurf rules, and other AI prompts
14 lines (13 loc) • 423 B
TypeScript
/**
* Simple frontmatter parser for .mdc files
* Parses YAML-like frontmatter without external dependencies
*/
export interface ParsedContent {
frontmatter: Record<string, any>;
content: string;
}
/**
* Parse frontmatter from content that may contain YAML frontmatter
* Returns the parsed frontmatter object and the remaining content
*/
export declare function parseFrontmatter(input: string): ParsedContent;