excel-builder-vanilla
v5.0.0
Published
An easy way of building Excel files with javascript
Downloads
19,506
Maintainers
Readme
Excel-Builder-Vanilla
Documentation
📘 Documentation website powered by GitBook
Live Demo
Available Live demo which displays a rough WYSIWYG (What You See Is What You Get) idea of all available options/methods.
Installation
npm install excel-builder-vanillaThe project only offers 1 bundle type
- ESM: to
import from(preferred)
// ESM - npm install
import { createWorksheet } from 'excel-builder-vanilla';Basic Usage
import { downloadExcelFile, Workbook } from 'excel-builder-vanilla';
const originalData = [
['Artist', 'Album', 'Price'],
['Buckethead', 'Albino Slug', 8.99],
['Buckethead', 'Electric Tears', 13.99],
['Buckethead', 'Colma', 11.34],
];
const artistWorkbook = new Workbook();
const albumList = artistWorkbook.createWorksheet({ name: 'Artists' });
albumList.setData(originalData);
artistWorkbook.addWorksheet(albumList);
downloadExcelFile(artistWorkbook, 'Artist WB.xlsx');Changelog
LICENSE
Major Changes
version 3.0
- initial release (forked from original
excel-builderlibrary)
version 4.0
- build as ESM-Only and drop CJS (CommonJS) build (aka
require())
version 5.0
- drop the legacy IIFE build and the use of
windowobject (typically used when loading as the legacy<script>).
