abelalvarez89 / xlsx-parse-json

MIT License
13 stars 4 forks source link

Type error if empty xlsx file uploaded #10

Open morozovkirill opened 4 years ago

morozovkirill commented 4 years ago

Hello. Firstly, thank you for library. It's small and comfortable.

But I have type error if I upload empty xlsx file. Could you fix it?

Снимок экрана 2020-07-17 в 14 29 48

And one more thing. You get first row of table as column's name in output objects (keys). But file may not have one-row header or may have two or three rows as header. Now, I have to read object keys, make a row from them, transform output array of objects to array of arrays and add first row with object keys to restore original table. Could you make this feature (keep original structure) as option?