A1📊
Declarative API
Write code that clearly shows the final Excel structure. Declarative API over imperative for better code readability.
B1📝
Full TypeScript Support
Type-safe with IntelliSense support. Designed for great developer experience.
C1🔗
Method Chaining
Fluent Excel construction with method chaining. Simple and intuitive API to get started quickly.
Quick Start
example.ts
import { xlmake } from "xlmake"
const output = await xlmake()
.sheet("Sales")
.table({
preset: "basic",
columns: [
{ key: "name", label: "Product" },
{ key: "price", label: "Price" },
{ key: "quantity", label: "Quantity" }
],
data: [
{ name: "Apple", price: 100, quantity: 50 },
{ name: "Orange", price: 80, quantity: 100 },
{ name: "Banana", price: 120, quantity: 30 }
],
}).getNode();report.xlsxGenerated Output
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Quantity |
| 2 | Apple | 100 | 50 |
| 3 | Orange | 80 | 100 |
| 4 | Banana | 120 | 30 |