@oniryk/xlsx
Version:
A lightweight, efficient TypeScript library for generating single-sheet Excel XLSX files with support for large datasets
19 lines (18 loc) • 723 B
TypeScript
import type SharedStrings from './shared-strings.js';
import type Sheet from './sheet.js';
/**
* Creates an Excel XLSX file from the provided sheet and shared strings
* Convenience function that wraps the Package class functionality
*
* @param sheet - Sheet instance containing the worksheet data
* @param strings - SharedStrings instance managing text content
* @returns Promise that resolves to the XLSX file as a Buffer
*
* @example
* const strings = new SharedStrings();
* const sheet = new Sheet(strings);
* sheet.addRow(['Name', 'Age']);
* sheet.addRow(['John', 25]);
* const buffer = await build(sheet, strings);
*/
export declare function build(sheet: Sheet, strings: SharedStrings): Promise<Buffer>;