https://www.npmjs.com/package/read-excel-file
используйте этот пакет npm.
Установка
npm install read-excel-file --save
In html
<input type="file" id="input" />
ts
import readXlsxFile from 'read-excel-file'
const input = document.getElementById('input')
input.addEventListener('change', () => {
readXlsxFile(input.files[0]).then((rows) => {
// `rows` is an array of rows
// each row being an array of cells.
})
})
Демо