Javascript: How to read and get data from an excel file
For myself, I'm using this function
async function readDataFromExcel(file: File): Promise<any[]> {
return new Promise((resolve, reject) => {
const fileReader = new FileReader();
fileReader.onload = () => {
const arrayBuffer = <any> fi...
trungnam.hashnode.dev1 min read
Leon
I think SheetJS can read your
datadirectly:const workbook = XLSX.read(data, { type: 'array' });