DiegoZoracKy / convert-excel-to-json

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

Getting columnData.match is not a function #70

Open sohan2410 opened 1 year ago

sohan2410 commented 1 year ago

I wanted to convert column key to camel case but it's throwing error columnData.match is not a function

const data = excelToJson({ source: file.buffer, header: { rows: 1, // Assuming the header is in the first row }, columnToKey: { "*": _.camelCase, }, });