Get started with exceljs CDN
MIT licensed
Node.js library: ExcelJS - creates, reads, writes Excel files in Office Genesis format.
Tags:- xlsx
- json
- csv
- excel
- font
- border
- fill
- number
- format
- number format
- alignment
- office
- spreadsheet
- workbook
- defined names
- data validations
- rich text
- in-cell format
- outlineLevel
- views
- frozen
- split
- pageSetup
Stable version
Copied!
How to start using exceljs CDN
const ExcelJS = require('exceljs');
// Create a workbook and load a new workbook file
const workbook = new ExcelJS.Workbook();
workbook.xlsx.readFile('output.xlsx')
.then(() => {
// Create a new worksheet
const worksheet = workbook.addWorksheet('New worksheet');
// Prepare data to write
const data = [
['Name', 'Age'],
['John Doe', 30],
['Jane Doe', 28],
];
// Write data to worksheet
worksheet.addRows(data);
// Save the workbook
return workbook.xlsx.writeFile('output.xlsx');
})
.then(() => {
console.log('Data written to file successfully.');
})
.catch((err) => {
console.error('Error writing data to file:', err);
});
// Load the ExcelJS library from the CDN
const ExcelJS_CDN = document.createElement('script');
ExcelJS_CDN.src = 'https://cdn.cdnhub.io/exceljs/4.4.0/exceljs.min.js';
document.head.appendChild(ExcelJS_CDN);
// Wait for the library to load before running the example
ExcelJS_CDN.onload = () => {
// Run the example here
};
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
0.2.41
0.2.42
0.2.43
0.2.44
0.2.45
0.2.46
0.3.0
0.3.1
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.14
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.5.0
0.5.1
0.6.0
0.6.1
0.6.2
0.7.0
0.7.1
0.8.0
0.8.1
0.8.2
0.8.3
0.8.4
0.8.5
0.9.0
0.9.1
1.0.0
1.0.1
1.0.2
1.1.0
1.1.1
1.1.2
1.1.3
1.10.0
1.11.0
1.12.0
1.12.1
1.12.2
1.13.0
1.14.0
1.15.0
1.2.0
1.2.1
1.3.0
1.4.0
1.4.1
1.4.10
1.4.12
1.4.13
1.4.2
1.4.3
1.4.5
1.4.6
1.4.7
1.4.8
1.4.9
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.6.3
1.7.0
1.8.0
1.9.0
1.9.1
2.0.0
2.0.1
3.0.0
3.1.0
3.10.0
3.2.0
3.3.0
3.3.1
3.7.0
3.8.0
3.8.1
3.8.2
3.9.0
4.0.0
4.0.1
4.1.0
4.1.1
4.2.0
4.2.1
4.3.0
*** 4.4.0