8

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

gone
  • 2,587
  • 6
  • 25
  • 32

4 Answers4

7

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

Robbert
  • 182
  • 1
  • 4
2

The node module named 'xlsx' (https://www.npmjs.com/package/xlsx) claims to parse *.xlsm files. I've used it with *.xls and *.xlsx files successfully. I don't see any reference to having to have Python installed, although I do have it installed so I can't be sure if it's needed.

John Deighan
  • 4,329
  • 4
  • 18
  • 19
1

Another option that does not require python to be installed is node-xlsx.

Rafael Vega
  • 4,575
  • 4
  • 32
  • 50
0

you can use excel-parser or xlsx from npm. more information npm xlsx

Daniel Taub
  • 5,133
  • 7
  • 42
  • 72