DiegoZoracKy / convert-excel-to-json

Convert Excel to JSON, mapping sheet columns to object keys.
MIT License
287 stars 91 forks source link

Bug Fix: When using data as a buffer, an error was shown #66

Open VerneStudios opened 2 years ago

VerneStudios commented 2 years ago

I used this library a couple of times before, and I kept having an error message when using buffer data. I tracked the bug to be just a missing argument in a function.

Line 132:

            workbook = XLSX.read(_config.source, {
                type:"buffer",
                sheetStubs: true,
                cellDates: true
            });