TableExport
The simple, easy-to-implement library to export HTML tables to xlsx
...Additional properties can be passed-in to customize the look and feel of your tables, buttons, and exported data. Notice that by default, TableExport will create export buttons for three different filetypes xls, csv, txt. You can choose which buttons to generate by setting the formats property to the filetype(s) of your choice.