@casoon/auditmysite
Version:
Professional website analysis suite with robust accessibility testing, Core Web Vitals performance monitoring, SEO analysis, and content optimization insights. Features isolated browser contexts, retry mechanisms, and comprehensive API endpoints for profe
32 lines • 1.55 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateMarkdownReport = generateMarkdownReport;
function generateMarkdownReport(data) {
const lines = [];
lines.push(`# Accessibility & Quality Report`);
lines.push(``);
lines.push(`**Generated:** ${data.metadata.timestamp}`);
lines.push(``);
// Accessibility Section
lines.push(`## Accessibility`);
lines.push('');
lines.push(`| Page | Errors | Warnings | Pa11y Score |`);
lines.push(`|------|--------|----------|-------------|`);
data.pages.forEach((page) => {
lines.push(`| ${page.url} | ${page.errors} | ${page.warnings} | ${page.issues?.pa11yScore ?? 'N/A'} |`);
});
lines.push('');
// Performance Section
lines.push(`## Performance`);
lines.push('');
lines.push(`| Page | Load Time (ms) | FCP | LCP | DOM Loaded | First Paint | Largest Paint |`);
lines.push(`|------|---------------|-----|-----|------------|-------------|--------------|`);
data.pages.forEach((page) => {
const perf = page.issues?.performanceMetrics || {};
lines.push(`| ${page.url} | ${perf.loadTime ?? 'N/A'} | ${perf.firstContentfulPaint ?? 'N/A'} | ${perf.largestContentfulPaint ?? 'N/A'} | ${perf.domContentLoaded ?? 'N/A'} | ${perf.firstPaint ?? 'N/A'} | ${perf.largestContentfulPaint ?? 'N/A'} |`);
});
lines.push('');
// SEO and Security sections removed - focus on Accessibility & Performance only
return lines.join('\n');
}
//# sourceMappingURL=markdown-report.js.map