Skip to content

Instantly share code, notes, and snippets.

@Ephellon
Created April 25, 2023 15:50
Show Gist options
  • Save Ephellon/2abf245a3ae901a852f96b19a7358f1d to your computer and use it in GitHub Desktop.
Save Ephellon/2abf245a3ae901a852f96b19a7358f1d to your computer and use it in GitHub Desktop.
Morning Report - Helpers
// https://codepedia.info/javascript-export-html-table-data-to-excel
// @requires: https://unpkg.com/xlsx@0.15.1/dist/xlsx.full.min.js
let workbook = XLSX.utils.table_to_book(table, { sheet: '<Sheet Name>' });
XLSX.writeFile(workbook, '<Sheet Name>.xlsx');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment