Skip to main content
Module

x/flat/src/xlsx.ts

A collection of postprocessing utilities for flat
Go to Latest
File
import xlsxlib from 'https://jspm.dev/xlsx'import { XLSX } from "./xlsx-types.ts";const xlsx = xlsxlib as XLSX;
// read more about the library here: https://github.com/SheetJS/sheetjs
export { xlsx } // export the right types for this lib
// returns a Workbookexport async function readXLSX(path: string) { const rawText = await Deno.readFile(path) const workbook = await xlsx.read(rawText, { type: 'buffer' }) return workbook}