Skip to content
Genom

Read an Excel workbook as structured data

Sheets, rows and cells with their computed values.

.xlsx.xlsOne package, every generation — @genomdev/xlsx

Loading the example…

A spreadsheet extracts differently from a document: the useful output is rows and typed cells rather than prose. Formatted values come out as the author would read them, and the raw number is still there underneath for anything that needs to compute with it.

The workbook’s cached values are authoritative and used as such; the formula engine is there for the rules that have no cached result.

import { extractMarkdown } from '@genomdev/genom';

// Headings stay headings, tables stay tables, and the document's own
// list numbers come out as text rather than as CSS.
const markdown = await extractMarkdown(file); // accounts.xlsx

Put it in your own application

What is above is the published package running in this page, with nothing behind it. The documentation covers the same ground with the API in full.