Skip to main content
Module

x/flat/src/xlsx.ts

A collection of postprocessing utilities for flat
Latest
File
// @deno-types="https://deno.land/x/sheetjs/types/index.d.ts"import * as xlsx from 'https://deno.land/x/sheetjs@v0.18.3/xlsx.mjs';import * as cptable from 'https://deno.land/x/sheetjs@v0.18.3/dist/cpexcel.full.mjs';xlsx.set_cptable(cptable);
// read more about the library here: https://github.com/SheetJS/sheetjsexport { xlsx }
// returns a Workbookexport async function readXLSX(path: string) { const data = await Deno.readFile(path) const workbook = xlsx.read(data) return workbook}