
The NullXlsx JavaScript library helps you dynamically generate XLSX files and Zip archives on the client side.
How to use it:
Include the needed JavaScript file on the web page.
<script src="nullxlsx.min.js"></script> <!-- OR --> <script src="nullxlsxonly.min.js"></script> <!-- OR --> <script src="nullzip.min.js"></script>
The JavaScript to create an XLSX and generate a download link on the web page.
// Data should be array of array
var data = [['Title 1', 'Title 2'],
['Carl', 12.4, new Date(2017, 7 - 1, 10)],
['Mia', 678, new Date()]
];
// Create xlsl
var xlsx = new NullXlsx('test.xlsx')
.addSheetFromData(data, 'Sheet name');
// Generate a link to download the file
document.body.appendChild(xlsx.createDownloadLink('Download test.xlsx'));Changelog:
11/03/2023
- v3.1.0: update dependencies and workflows
03/03/2020
- v3.0.3: Bugfix
10/09/2019
- v3.0.2: Bugfix
07/01/2018
- v3.0.1
10/09/2018
- Refactor







