---
title: "Comment by Leon on \"Javascript: How to read and get data from an excel file\" | Hashnode"
description: "I think SheetJS can read your data directly: const workbook = XLSX.read(data, { type : &#x27;array&#x27; });"
url: "https://hashnode.com/posts/javascript-how-to-read-and-get-data-from-an-excel-file/610f1d58b79d6a11366822a9/comment/612ba13f2858872661b9b825"
---

[Discussion](https://hashnode.com/posts/javascript-how-to-read-and-get-data-from-an-excel-file/610f1d58b79d6a11366822a9)

Comment [Javascript: How to read and get data from an excel file](https://hashnode.com/posts/javascript-how-to-read-and-get-data-from-an-excel-file/610f1d58b79d6a11366822a9)

[Leon](https://hashnode.com/@LeonH)

[Aug 29, 2021](https://hashnode.com/posts/javascript-how-to-read-and-get-data-from-an-excel-file/610f1d58b79d6a11366822a9/comment/612ba13f2858872661b9b825)

I think SheetJS can read your `data` directly:

```
const workbook = XLSX.read(data, { type: 'array' });
```

[Trung Nam](https://hashnode.com/@trungnam)

[Aug 29, 2021](https://hashnode.com/posts/javascript-how-to-read-and-get-data-from-an-excel-file/610f1d58b79d6a11366822a9/comment/612ba13f2858872661b9b825#reply-612c0d6a2858872661b9c368)

I mean XLSX js, not SheetJS. You can find it on [npmjs.com/package/xlsx](https://www.npmjs.com/package/xlsx)
