export-to-xlsx

The front end exports the XLSX method

Usage no npm install needed!

<script type="module">
  import exportToXlsx from 'https://cdn.skypack.dev/export-to-xlsx';
</script>

README

xlsx ES6

Export To Xlsx

The front end exports the XLSX method

Install

    npm install export-to-xlsx

Usage


  import ExportToXlsx from 'export-to-xlsx'
  ...
  
  function exportData (data) {
      
      const fileName = 'output'
      
      const headers = [
          {
              k: 'key',
              v: 'value'
          },
          ...
        ]
    ExportToXlsx(headers, data, fileName)
  }
  

Author

  • blog: osenki

    If you have any problem in using it, please feel free to give me feedback. You can communicate with me through the following contact information

License

ISC

Keywords

xlsx csv