UNPKG

quick-excel-json

Version:

Convert Excel (.xlsx, .xls, .csv) files to JSON easily. Fast, lightweight, and perfect for React, Node.js, and web applications. Supports SheetJS and ExcelJS and a simple npm package to convert JSON data to an Excel (.xlsx, .xls) file using SheetJS (xlsx)

14 lines (13 loc) 587 B
declare module 'quick-excel-json' { /** * Convert an Excel file to JSON format * @param file - The uploaded Excel file (.xls, .xlsx, .csv) * @param jsonData - The uploaded Excel file (.json) * @returns A promise that resolves to an array of objects representing the JSON data */ export function fileHandler(file: File | Blob): Promise<Blob>; export default fileHandler; export function handleExportHandler(jsonData: any[]): Blob; export function handleExportHandler(file: File | Blob): Promise<Blob>; export default handleExportHandler; }