Skip to Content
Anuma SDKReactInternalClassesExcelProcessor

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

ParameterType

options

object

options.maxRowsPerSheet?

number

Returns

ExcelProcessor

Properties

name

readonly name: "excel" = "excel"

Defined in: src/lib/processors/ExcelProcessor.ts:47 

Unique identifier for this processor

Implementation of

FileProcessor.name


supportedExtensions

readonly supportedExtensions: 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

readonly supportedMimeTypes: 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

ParameterTypeDescription

file

FileWithData

File metadata with data URL

Returns

Promise<ProcessedFileResult | null>

Extracted text content and metadata, or null if processing fails/not applicable

Implementation of

FileProcessor.process

Last updated on