devopslife
devopslife

Reputation: 668

parsing deserialized application/vnd.ms-excel in node js

I have application/vnd.ms-excel (xls) object in memory. No option to save it to disk. I need to parse it but all the libraries I found are taking file path as a parameter.

Any experience/ideas what to use to process the content of the xls?

Thanks

Upvotes: 1

Views: 1682

Answers (1)

devopslife
devopslife

Reputation: 668

So https://github.com/SheetJS/js-xlsx worked for me:

var xlsx = require('xlsx');
var workbook = xlsx.read(data.Body, {type:"buffer"});

Upvotes: 3

Related Questions