(filePath: string)
| 775 | } |
| 776 | |
| 777 | async function readDescription(filePath: string): Promise<string | null> { |
| 778 | try { |
| 779 | const raw = await fs.readFile(filePath, "utf8") |
| 780 | const { data } = parseFrontmatter(raw, filePath) |
| 781 | return typeof data.description === "string" ? data.description : null |
| 782 | } catch { |
| 783 | return null |
| 784 | } |
| 785 | } |
| 786 | |
| 787 | async function readYamlDescription(filePath: string): Promise<string | null> { |
| 788 | try { |
no test coverage detected