From 8658f495c60f924565d60c2fad85172cfc71590c Mon Sep 17 00:00:00 2001
From: ghiscoding Excel-Builder-Vanilla
- Standalone JS (IIFE)
-
-
-
-
-
-
-
-
- Artist
- Album (hidden column)
- Price
-
-
- Buckethead
- Albino Slug
- 8.99
-
-
- Buckethead
- Electric Tears
- 13.99
-
-
- Buckethead
- Colma
- 11.34
-
-
- Crystal Method
- Vegas
- 10.54
-
-
- Crystal Method
- Tweekend
- 10.64
-
-
-
- Crystal Method
- Divided By Night
- 8.99
- CDN
jsDelivr
graciously provide CDNs for many JavaScript libraries including Excel-Builder-Vanilla. Just use the following CDN links.
- The project now ships as ESM-Only, if you still wish to use the legacy CommonJS (CJS) format with require(), then use
- previous 3.x version.
-
-<!-- (IIFE Standalone Script) Latest compiled and minified JavaScript --> -<script type="module" src="https://cdn.jsdelivr.net/npm/excel-builder-vanilla@4.0.0/dist/excel-builder.iife.js"></script> +<script type="module"> + // ESM Module import + import excelBuilderVanilla from 'https://cdn.jsdelivr.net/npm/excel-builder-vanilla@5.0.0/+esm'; +</script> +
- Note: the-excel-builder.iife.jsis the only dist bundle providing theExcelBuilderon the -windowobject. -
- You can find a Standalone Script (IIFE) example at the location - examples/example-standalone-iife.html -
The library provides both CommonJS or ESM, see the example below:
-// CommonJS
-const { createWorkbook, Workbook } = require('excel-builder-vanilla');
-
// ESM
-import { createWorkbook } from 'excel-builder-vanilla';
+import { createWorkbook } from 'excel-builder-vanilla';
// use it
-const artistWorkbook = createWorkbook(); // or new Workbook();
-const albumList = artistWorkbook.createWorksheet({ name: 'Artists' });
-albumList.setData(this.originalData);
+const artistWorkbook = createWorksheet(); // or new Workbook();
+const albumList = artistWorkbook.createWorksheet({ name: 'Artists' });
+albumList.setData(this.originalData);
+
+
+ The project now ships as ESM-Only, if you still wish to use the legacy <script> standalone IIFE Script on the
+ window object, then use the previous 4.x version.
+