StaticcreateCreate an exporter instance for the specified format (sync - csv/json only) For Excel format, use CreateExporterAsync() instead.
StaticCreateCreate an exporter instance asynchronously (supports all formats including Excel)
StaticexportExport data to the specified format
Array of data objects or arrays to export
Export options including format, columns, sampling, etc.
Export result with buffer and metadata
StaticgetStaticgetGet format capabilities
StaticgetStaticgetGet supported export formats
StaticsupportsStaticsupportsStaticsupportsStatictoExport to CSV format
StatictoExport to Excel format (single sheet)
StatictoCreate a multi-sheet Excel workbook
Array of sheet definitions
Additional workbook options
Export result with buffer and metadata
const result = await ExportEngine.toExcelMultiSheet([
{
name: 'Sales Data',
data: salesData,
headerStyle: { font: { bold: true }, fill: { pattern: 'solid', fgColor: '4472C4' } }
},
{
name: 'Summary',
data: summaryData,
formulas: [{ cell: 'B10', formula: 'SUM(B2:B9)' }]
}
], {
fileName: 'quarterly-report',
metadata: { author: 'Sales Team', title: 'Q1 2024 Report' }
});
StatictoExport to JSON format
Main export engine class Provides a unified API for all export formats including multi-sheet Excel workbooks