@webrec/plugin-export
v1.0.0
Published
Webrec plugin to export reports in various formats (HTML, CSV, Markdown).
Downloads
4
Maintainers
Readme
@webrec/plugin-export
A plugin for Webrec that enables exporting reports in multiple formats like HTML, CSV, and Markdown.
Features
- 📄 HTML: Generates a self-contained, styled HTML report.
- 📊 CSV: Exports events to a spreadsheet-friendly CSV format.
- 📝 Markdown: Creates a formatted Markdown report suitable for GitHub issues or documentation.
Install
npm install @webrec/plugin-exportUsage
import webrec from 'webrec';
import createExportPlugin from '@webrec/plugin-export';
// Register the plugin
webrec.use(createExportPlugin());
// Export in different formats
const htmlReport = await webrec.export('html');
const csvReport = await webrec.export('csv');
const mdReport = await webrec.export('markdown');
// You can then download or send these strings to your serverSupported Formats
'json'(Default, built-in to Webrec)'html''csv''markdown'
License
MIT
