StaticcreateUse CreateExporter.
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)
StaticexportUse Export.
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
StaticgetStaticGetStaticgetStaticGetGet format capabilities
StaticgetStaticGetStaticgetUse GetSupportedFormats.
StaticGetGet supported export formats
StaticsupportsStaticSupportsStaticsupportsStaticSupportsStaticsupportsStaticSupportsStatictoUse ToCSV.
StaticToExport to CSV format
StatictoUse ToExcel.
StaticToExport to Excel format (single sheet)
StatictoUse ToExcelMultiSheet.
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