Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parse xls/xlsx/xlsm in Node.js

Running in Node.js, I need to be able to parse cell value's from Excel .xls,.xlsx, and .xlsm.

Are there solutions available? I doubt there's a single module out there that will do the trick, so perhaps there is a way to internally convert two of the formats into the third and have a single format parser?

Has anyone else encountered this problem? If so, what kind of solution did you come up with?

Any help is greatly appreciated. Thank you

like image 449
gone Avatar asked Jul 16 '13 20:07

gone


People also ask

How do I read XLS files in node?

Explanation: First, the npm module is included in the read. js file and then the excel file is read into a workbook i.e constant file in the above program. A for loop is run until the end of the excel file starting from the first page.

What is XLS XLSX XLSM?

A file with XLSX, XLSM, XLS, XLTX or XLTM extension is a Microsoft Excel file that uses specific standard file format. You can show or display file extension on Windows OS from Folder Options. MS Excel lets you save files in any of these file formats using the Save As option.

Is XLSM and XLSX the same?

xlsm" is basically the same as ". xlsx" and can be opened with Excel 2007 and above. The only difference is that ". xlsm" starts the macro.


1 Answers

The package https://npmjs.org/package/excel-parser works for XLS & XLSX

like image 152
Robbert Avatar answered Sep 22 '22 00:09

Robbert