catamphetamine / read-excel-file

Read *.xlsx files in a browser or Node.js. Parse to JSON with a strict schema.
https://catamphetamine.gitlab.io/read-excel-file/
MIT License
301 stars 52 forks source link

Allow schema skipping columns #48

Closed llermaly closed 5 years ago

llermaly commented 5 years ago

Hello,

I'm receiving a 10 columns file but I only need 5. Is there a way to tell the schema to skip the unwanted columns? If I only put in the schema the columns I need the json response is empty.

Thanks!

catamphetamine commented 5 years ago

To skip certain columns omit them in schema.

llermaly commented 5 years ago

hello @catamphetamine and thanks, if I omit columns then I get this response:

{ rows: [], errors: [] }

catamphetamine commented 5 years ago

provide an online demo somewhere on codepen or alternative.

llermaly commented 5 years ago

My mistake, the file was wrong. It is working as expected.

Thanks for your time