@papb/json-excel
Version:
Create a pretty Excel table from JSON data with a very simple API
10 lines (9 loc) • 365 B
TypeScript
import Excel from 'exceljs';
import type { JsonSheet, JsonToExcelOptions } from './types';
/**
* Convert a list of JSON sheets into an ExcelJS Workbook.
* @param sheets Array of JsonSheets to convert
* @param options Options
* @returns ExcelJS.Workbook
*/
export declare function jsonToExcel(sheets: JsonSheet[], options?: JsonToExcelOptions): Excel.Workbook;