Introduction
Get started with xldx - Excel file builder for JavaScript
Introduction
xldx is a zero-dependency Excel file builder for JavaScript. It provides a simple, type-safe API for creating Excel files with advanced styling and formatting capabilities.
Features
- Zero dependencies
- Pattern-based styling - Apply styles based on cell data patterns
- Multi-sheet support - Create complex workbooks
- Type safe - Full type definitions and IntelliSense
- Universal - Works in browsers and node, bun, or deno
- Small bundle - < 17KB minified
Quick Example
"code-keyword">import { Xldx } "code-keyword">from 'xldx';
"code-keyword">const data = [
{ name: 'Alice', age: 30, city: 'NYC' },
{ name: 'Bob', age: 25, city: 'LA' }
];
"code-keyword">const xldx = "code-keyword">new Xldx(data);
xldx.createSheet(
{ name: 'Users' },
{ key: 'name', header: 'Name' },
{ key: 'age', header: 'Age' },
{ key: 'city', header: 'City' }
);
// Browser
"code-keyword">await xldx.download('users.xlsx');
// node, bun, or deno
"code-keyword">await xldx.write('users.xlsx');
Next Steps
- Setup Guide - Install and configure xldx
- API Reference - Complete API documentation