deno.land / x / sheetjs@v0.18.3 / demos / typescript / lib / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com *//* vim: set ts=2: */
import * as XLSX from 'xlsx';
const { read, utils: { sheet_to_json } } = XLSX;
export function readFirstSheet(data: any, options: XLSX.ParsingOptions): any[][] { const wb: XLSX.WorkBook = read(data, options); const ws: XLSX.WorkSheet = wb.Sheets[wb.SheetNames[0]]; return sheet_to_json(ws, { header: 1, raw: true });}
sheetjs

Version Info

Tagged at
2 years ago