Gathering detailed insights and metrics for @excel-builder-vanilla/types
Gathering detailed insights and metrics for @excel-builder-vanilla/types
Gathering detailed insights and metrics for @excel-builder-vanilla/types
Gathering detailed insights and metrics for @excel-builder-vanilla/types
Build Excel files from JavaScript
npm install @excel-builder-vanilla/types
Typescript
Module System
Node Version
NPM Version
TypeScript (80.58%)
HTML (16.63%)
SCSS (2.39%)
JavaScript (0.39%)
Total Downloads
21,207
Last Day
172
Last Week
1,133
Last Month
5,006
Last Year
21,207
7 Stars
318 Commits
2 Forks
2 Watching
2 Branches
2 Contributors
Latest Version
3.0.14
Package Id
@excel-builder-vanilla/types@3.0.14
Unpacked Size
61.15 kB
Size
17.53 kB
File Count
8
NPM Version
lerna/3.9.3/node@v20.17.0+x64 (linux)
Node Version
20.17.0
Publised On
13 Oct 2024
Cumulative downloads
Total Downloads
Last day
-37%
172
Compared to previous day
Last week
-20.3%
1,133
Compared to previous week
Last month
7.4%
5,006
Compared to previous month
Last year
0%
21,207
Compared to previous year
1
📘 Documentation website powered by GitBook (previous project docs were pulled from web archive)
This lib allows you to build and write an Excel file dynamically, it does not include any reader capabilities making the library super lightweight.
Visit the Live demo to get started and see all available options and methods that the library offers.
You can also take a look at the "Used by" section below to see real world applications taking advantage of this library.
Excel-Builder-Vanilla is a fork of the popular excel-builder.js project (thanks to @stephenliberty for this great library). The main goal of creating this fork was to modernize the project by removing old dependencies that are no longer necessary and also replace JSZip
by fflate
which provides an ESM build and is indirectly giving us better Tree Shaking. The other goal was also to provide an ESM build to eventually get away from CommonJS (CJS bundle is still offered but we strongly suggest that you migrate to the ESM approach)
The modernization steps:
d.ts
)Q
dependency (we now simply use native Promise
)Lodash
dependency (we now use native JS code)JSZip
dependency with fflate
which has an ESM build and offers better performance.v3.0.0
as a major
release (the original project version was in the 2.x
range.)
v3.0.0
The project now requires only 1 dependency which is fflate.
This modernization is providing a huge decrease in the final build size, with only 1 dependency, and also offers better performance 🚀
1npm install excel-builder-vanilla
The project offers 3 different build types, choose the best one depending on your use case
import from
(preferred)require()
- will probably be dropped in the futureExcelBuilder
on the window
object1// ESM (preferred) - npm install 2import { createWorksheet } from 'excel-builder-vanilla'; 3 4// CJS - npm install 5const { createWorksheet } = require('excel-builder-vanilla'); 6 7// IIFE - CDN 8<script src="https://cdn.jsdelivr.net/npm/excel-builder-vanilla@3.0.1/dist/excel-builder.iife.js"></script> 9<script> 10 const worksheet = ExcelBuilder.createWorksheet(); // or window.ExcelBuilder.createWorksheet(); 11</script>
Please note that since we use fflate
(which creates and compresses the Excel file before sending it to the browser), you might get some CSP errors because of its use of Web Workers. For that reason, you might need to adjust your CSP rules by adding worker-src 'self' blob:;
1<meta http-equiv="Content-Security-Policy" 2 content="default-src 'self'; 3 // other rules... 4 worker-src 'self' blob:;" />
This fork was created mostly to support Tree Shaking (ESM), to get away from CJS, to provide TS Types and finally to update all project dependencies. It is used by a few other Open Source libraries that I also maintain and require Excel export:
Pull Request are welcome, feel free to contribute.
If you wish to contribute to the project, please follow the steps below:
Note: this project uses pnpm workspaces, you can install pnpm by following their installation or use NodeJS corepack enable
to run any of the pnpm scripts shown below:
git clone https://github.com/ghiscoding/excel-builder-vanilla
pnpm install
OR npx pnpm install
pnpm run build
OR npx pnpm run build
pnpm run dev
OR npx pnpm run dev
Before submitting a PR (pull request), please make sure that you followed these steps for a better chance of a successfull PR:
pnpm install
pnpm run biome:lint:write
pnpm run biome:format:write
pnpm run build
Package Name | NPM downloads | Size (gzip) | Changes | Description |
---|---|---|---|---|
excel-builder-vanilla | changelog | excel-builder-vanilla library package | ||
excel-builder-vanilla-types | changelog | excel-builder-vanilla dts types only package. |
No vulnerabilities found.
No security vulnerabilities found.