{"id":28928207,"url":"https://github.com/ktsu-dev/frontmatter","last_synced_at":"2026-02-16T07:17:51.992Z","repository":{"id":289828900,"uuid":"972535514","full_name":"ktsu-dev/Frontmatter","owner":"ktsu-dev","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-14T01:50:49.000Z","size":298,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-14T08:51:35.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ktsu-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":"COPYRIGHT.md","agents":null,"dco":null,"cla":null}},"created_at":"2025-04-25T08:33:10.000Z","updated_at":"2026-02-14T01:49:27.000Z","dependencies_parsed_at":"2025-04-25T09:41:46.900Z","dependency_job_id":"b5fe6a0a-ac89-457e-bec5-9921868c7725","html_url":"https://github.com/ktsu-dev/Frontmatter","commit_stats":null,"previous_names":["ktsu-dev/frontmatter"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/ktsu-dev/Frontmatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsu-dev%2FFrontmatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsu-dev%2FFrontmatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsu-dev%2FFrontmatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsu-dev%2FFrontmatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktsu-dev","download_url":"https://codeload.github.com/ktsu-dev/Frontmatter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsu-dev%2FFrontmatter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29502934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T05:57:17.024Z","status":"ssl_error","status_checked_at":"2026-02-16T05:56:49.929Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-22T14:12:29.615Z","updated_at":"2026-02-16T07:17:51.963Z","avatar_url":"https://github.com/ktsu-dev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ktsu.Frontmatter\n\nA .NET library for processing and manipulating YAML frontmatter in markdown files.\n\n## Features\n\n- Extract, add, replace, and remove frontmatter from markdown documents\n- Combine multiple frontmatter sections into a single section\n- Standardize property names using intelligent matching\n- Sort properties according to standard conventions\n- Merge similar properties using different strategies\n- High performance with caching for repeated operations\n\n## Installation\n\n```bash\ndotnet add package ktsu.Frontmatter\n```\n\n## Usage\n\n```csharp\nusing ktsu.Frontmatter;\n\n// Extract frontmatter from a markdown document\nstring markdown = File.ReadAllText(\"document.md\");\nvar frontmatter = Frontmatter.ExtractFrontmatter(markdown);\n\n// Add frontmatter to a document\nvar properties = new Dictionary\u003cstring, object\u003e\n{\n    { \"title\", \"My Document\" },\n    { \"date\", DateTime.Now },\n    { \"tags\", new[] { \"documentation\", \"markdown\" } }\n};\nstring withFrontmatter = Frontmatter.AddFrontmatter(markdown, properties);\n\n// Replace frontmatter\nstring replaced = Frontmatter.ReplaceFrontmatter(markdown, properties);\n\n// Remove frontmatter\nstring withoutFrontmatter = Frontmatter.RemoveFrontmatter(markdown);\n\n// Combine multiple frontmatter sections\nstring combined = Frontmatter.CombineFrontmatter(markdown);\n\n// Customize property naming and ordering\nstring customized = Frontmatter.CombineFrontmatter(\n    markdown, \n    FrontmatterNaming.Standard,  // Standardize property names\n    FrontmatterOrder.Sorted,     // Sort properties in standard order\n    FrontmatterMergeStrategy.Conservative // Merge similar properties\n);\n\n// Extract just the document body (content after frontmatter)\nstring body = Frontmatter.ExtractBody(markdown);\n```\n\n## Advanced Features\n\n### Property Naming\n\nControl how property names are handled:\n\n- `FrontmatterNaming.AsIs`: Keep property names as-is\n- `FrontmatterNaming.Standard`: Standardize property names using common conventions\n\n### Property Ordering\n\nControl how properties are ordered:\n\n- `FrontmatterOrder.AsIs`: Keep properties in the order they appear\n- `FrontmatterOrder.Sorted`: Sort properties according to standard conventions\n\n### Merge Strategies\n\nControl how similar properties are merged:\n\n- `FrontmatterMergeStrategy.None`: Do not merge any properties\n- `FrontmatterMergeStrategy.Conservative`: Only merge properties using predefined mappings\n- `FrontmatterMergeStrategy.Aggressive`: Merge properties using basic pattern matching\n- `FrontmatterMergeStrategy.Maximum`: Merge properties using semantic analysis\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktsu-dev%2Ffrontmatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktsu-dev%2Ffrontmatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktsu-dev%2Ffrontmatter/lists"}