LuisEnMarroquin / json-as-xlsx

Create excel from json npm package
https://www.npmjs.com/package/json-as-xlsx
MIT License
159 stars 26 forks source link

Columns with `.` in their name get ignored #95

Open LowNightSnack opened 11 months ago

LowNightSnack commented 11 months ago

It seems columns with . in their names get ignored. Example:

xlsx([{sheet: "test", columns: [{label: "Ex. Rate", value: "Ex. Rate"}], content: [{"Ex. Rate": 1}, {"Ex. Rate": 1}, {"Ex. Rate": 1}, {"Ex. Rate": 1}], {fileName: "Test"})
LowNightSnack commented 11 months ago

If this is not how should the function should be used, please add this in the docs. If there is something I can help with, I'll contribute too.