@office-open/xlsx 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  ![npm downloads](https://img.shields.io/npm/dw/@office-open/xlsx)
5
5
  ![npm license](https://img.shields.io/npm/l/@office-open/xlsx)
6
6
 
7
- > Generate and parse .xlsx files with JS/TS with a declarative API.
7
+ > Generate and parse .xlsx spreadsheets with a declarative TypeScript API. Works in Node.js and browsers.
8
8
 
9
9
  ## Features
10
10
 
@@ -19,17 +19,26 @@
19
19
  - 📈 **Charts** — Bar, line, pie, area, and scatter charts with customization
20
20
  - ✅ **Data Validation** — List, whole number, decimal, date, and custom validations
21
21
  - 🎯 **Conditional Formatting** — Cell value-based rules with formatting
22
+ - 📊 **Pivot Tables** — Create pivot tables with various aggregation functions
23
+ - 💬 **Comments** — Cell comments with author tracking and rich text support
24
+ - 🔒 **Sheet & Workbook Protection** — Password-protect worksheets and workbook structure
22
25
  - 📖 **Parsing** — Parse existing .xlsx files with `parseWorkbook` for round-trip workflows
23
26
  - 🔧 **Template Patching** — Patch existing XLSX templates via placeholder replacement
24
27
 
25
28
  ## Installation
26
29
 
27
30
  ```bash
28
- # Install with npm
29
- $ npm install @office-open/xlsx
31
+ # pnpm
32
+ pnpm add @office-open/xlsx
30
33
 
31
- # Install with pnpm
32
- $ pnpm add @office-open/xlsx
34
+ # npm
35
+ npm install @office-open/xlsx
36
+
37
+ # yarn
38
+ yarn add @office-open/xlsx
39
+
40
+ # bun
41
+ bun add @office-open/xlsx
33
42
  ```
34
43
 
35
44
  ## Quick Start
@@ -42,7 +51,7 @@ const wb = new Workbook({
42
51
  worksheets: [
43
52
  {
44
53
  name: "Sheet1",
45
- children: [
54
+ rows: [
46
55
  { cells: [{ value: "Name" }, { value: "Score" }] },
47
56
  { cells: [{ value: "Alice" }, { value: 95 }] },
48
57
  { cells: [{ value: "Bob" }, { value: 87 }] },