Hi, I have received the following response(from .xlsx file) in the network layer from the Javascript fetch API request. I would like to parse this response and display the correct format(Whether it is JSON or text) on the Webpage.
Here is the URL link, https://file-examples-com.github.io/uploads/2017/02/file_example_XLSX_10.xlsx
const urlXL="https://file-examples-com.github.io/uploads/2017/02/file_example_XLSX_10.xlsx"
const getXLFile = () => {
return fetch(urlXL)
.then(response => response)
// .then(item => {
// const wb = XLSX.read(item, {type:'binary'}); // I was trying to use xlsx npm package
// console.log(wb)
// })
.catch(error => console.log(error))
}
getXLFile();