ExcelProcessor
Defined in: src/lib/processors/ExcelProcessor.ts:46
Processor for Excel files (.xlsx) that converts each sheet to CSV.
CSV rather than JSON: JSON repeated every header on every row, several times the characters for the same data, and ran into the text caps long before the data did.
Uses a dynamic import for exceljs so the heavy dependency tree is only loaded when actually processing an Excel file.
Implements
Constructors
Constructor
new ExcelProcessor(
options:object):ExcelProcessor
Defined in: src/lib/processors/ExcelProcessor.ts:55
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
ExcelProcessor
Properties
name
readonlyname:"excel"="excel"
Defined in: src/lib/processors/ExcelProcessor.ts:47
Unique identifier for this processor
Implementation of
supportedExtensions
readonlysupportedExtensions:string[]
Defined in: src/lib/processors/ExcelProcessor.ts:51
File extensions this processor can handle (fallback if MIME type unavailable)
Implementation of
FileProcessor.supportedExtensions
supportedMimeTypes
readonlysupportedMimeTypes:string[]
Defined in: src/lib/processors/ExcelProcessor.ts:48
MIME types this processor can handle
Implementation of
FileProcessor.supportedMimeTypes
Methods
process()
process(
file:FileWithData):Promise<ProcessedFileResult|null>
Defined in: src/lib/processors/ExcelProcessor.ts:64
Process a file and extract text content
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
File metadata with data URL |
Returns
Promise<ProcessedFileResult | null>
Extracted text content and metadata, or null if processing fails/not applicable
Implementation of