Skip to content

read Functions

Functions from src/read.ts

Functions exported from src/read.ts

read

function read(data: any, opts?: FullReadOptions): Promise<WorkBook>

Parameters

NameTypeDescription
dataanyFile contents as Uint8Array, ArrayBuffer, Buffer, base64 string, binary string, or plain text string
opts (optional)FullReadOptionsRead options controlling parsing behavior

Returns

Promise<WorkBook>

A full workbook, or the metadata-only shape selected by bookSheets and bookProps

function read(data: any, opts: BookSheetsAndPropsReadOptions): Promise<BookSheetsAndPropsResult>

Parameters

NameTypeDescription
dataanyFile contents as Uint8Array, ArrayBuffer, Buffer, base64 string, binary string, or plain text string
optsBookSheetsAndPropsReadOptionsRead options controlling parsing behavior

Returns

Promise<BookSheetsAndPropsResult>

A full workbook, or the metadata-only shape selected by bookSheets and bookProps

function read(data: any, opts: BookSheetsReadOptions): Promise<BookSheetsResult>

Parameters

NameTypeDescription
dataanyFile contents as Uint8Array, ArrayBuffer, Buffer, base64 string, binary string, or plain text string
optsBookSheetsReadOptionsRead options controlling parsing behavior

Returns

Promise<BookSheetsResult>

A full workbook, or the metadata-only shape selected by bookSheets and bookProps

function read(data: any, opts: BookPropsReadOptions): Promise<BookPropsResult>

Parameters

NameTypeDescription
dataanyFile contents as Uint8Array, ArrayBuffer, Buffer, base64 string, binary string, or plain text string
optsBookPropsReadOptionsRead options controlling parsing behavior

Returns

Promise<BookPropsResult>

A full workbook, or the metadata-only shape selected by bookSheets and bookProps

function read(data: any, opts?: ReadOptions): Promise<ReadResult>

Parameters

NameTypeDescription
dataanyFile contents as Uint8Array, ArrayBuffer, Buffer, base64 string, binary string, or plain text string
opts (optional)ReadOptionsRead options controlling parsing behavior

Returns

Promise<ReadResult>

A full workbook, or the metadata-only shape selected by bookSheets and bookProps