tinyweb-office-cells 1.0.0 → 1.0.1
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 +13 -13
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# tinyweb-cells
|
|
1
|
+
# tinyweb-office-cells
|
|
2
2
|
|
|
3
3
|
> Open-source Node.js/TypeScript library for reading, writing, and manipulating Excel XLSX files with full formatting, formula evaluation, and Aspose Cells-compatible API.
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/tinyweb-cells)
|
|
5
|
+
[](https://www.npmjs.com/package/tinyweb-office-cells)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
8
|
## Features
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
## Installation
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
npm install tinyweb-cells
|
|
32
|
+
npm install tinyweb-office-cells
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## Quick Start
|
|
@@ -37,7 +37,7 @@ npm install tinyweb-cells
|
|
|
37
37
|
### Create a Workbook and Save
|
|
38
38
|
|
|
39
39
|
```typescript
|
|
40
|
-
import { Workbook, SaveFormat } from 'tinyweb-cells';
|
|
40
|
+
import { Workbook, SaveFormat } from 'tinyweb-office-cells';
|
|
41
41
|
|
|
42
42
|
// Create a new workbook
|
|
43
43
|
const workbook = new Workbook();
|
|
@@ -61,7 +61,7 @@ await workbook.save('output.xlsx');
|
|
|
61
61
|
### Read an Existing File
|
|
62
62
|
|
|
63
63
|
```typescript
|
|
64
|
-
import { Workbook } from 'tinyweb-cells';
|
|
64
|
+
import { Workbook } from 'tinyweb-office-cells';
|
|
65
65
|
|
|
66
66
|
const workbook = new Workbook();
|
|
67
67
|
await workbook.loadFile('input.xlsx');
|
|
@@ -74,7 +74,7 @@ console.log(sheet.name); // Sheet name
|
|
|
74
74
|
### Apply Formatting
|
|
75
75
|
|
|
76
76
|
```typescript
|
|
77
|
-
import { Workbook } from 'tinyweb-cells';
|
|
77
|
+
import { Workbook } from 'tinyweb-office-cells';
|
|
78
78
|
|
|
79
79
|
const workbook = new Workbook();
|
|
80
80
|
const sheet = workbook.worksheets.get(0);
|
|
@@ -261,7 +261,7 @@ cell.setStyle(style);
|
|
|
261
261
|
Evaluate formulas in cells.
|
|
262
262
|
|
|
263
263
|
```typescript
|
|
264
|
-
import { FormulaEvaluator } from 'tinyweb-cells';
|
|
264
|
+
import { FormulaEvaluator } from 'tinyweb-office-cells';
|
|
265
265
|
|
|
266
266
|
// Set up formulas
|
|
267
267
|
sheet.cells.get('A1').putValue(10);
|
|
@@ -280,7 +280,7 @@ console.log(sheet.cells.get('A3').value); // 30
|
|
|
280
280
|
Add data validation rules to cells.
|
|
281
281
|
|
|
282
282
|
```typescript
|
|
283
|
-
import { DataValidation, DataValidationType, DataValidationOperator } from 'tinyweb-cells';
|
|
283
|
+
import { DataValidation, DataValidationType, DataValidationOperator } from 'tinyweb-office-cells';
|
|
284
284
|
|
|
285
285
|
const validations = sheet.dataValidations;
|
|
286
286
|
|
|
@@ -431,7 +431,7 @@ The built-in formula evaluator supports **43 Excel functions** across 7 categori
|
|
|
431
431
|
### Create and Save a Workbook
|
|
432
432
|
|
|
433
433
|
```typescript
|
|
434
|
-
import { Workbook } from 'tinyweb-cells';
|
|
434
|
+
import { Workbook } from 'tinyweb-office-cells';
|
|
435
435
|
|
|
436
436
|
const wb = new Workbook();
|
|
437
437
|
const ws = wb.worksheets.get(0);
|
|
@@ -469,7 +469,7 @@ await wb.save('sales-report.xlsx');
|
|
|
469
469
|
### Read and Modify an Existing File
|
|
470
470
|
|
|
471
471
|
```typescript
|
|
472
|
-
import { Workbook } from 'tinyweb-cells';
|
|
472
|
+
import { Workbook } from 'tinyweb-office-cells';
|
|
473
473
|
|
|
474
474
|
const wb = new Workbook();
|
|
475
475
|
await wb.loadFile('existing.xlsx');
|
|
@@ -494,7 +494,7 @@ await wb.save('modified.xlsx');
|
|
|
494
494
|
### Data Validation with Dropdown
|
|
495
495
|
|
|
496
496
|
```typescript
|
|
497
|
-
import { Workbook, DataValidationType } from 'tinyweb-cells';
|
|
497
|
+
import { Workbook, DataValidationType } from 'tinyweb-office-cells';
|
|
498
498
|
|
|
499
499
|
const wb = new Workbook();
|
|
500
500
|
const ws = wb.worksheets.get(0);
|
|
@@ -516,7 +516,7 @@ await wb.save('dropdown.xlsx');
|
|
|
516
516
|
### Conditional Formatting
|
|
517
517
|
|
|
518
518
|
```typescript
|
|
519
|
-
import { Workbook } from 'tinyweb-cells';
|
|
519
|
+
import { Workbook } from 'tinyweb-office-cells';
|
|
520
520
|
|
|
521
521
|
const wb = new Workbook();
|
|
522
522
|
const ws = wb.worksheets.get(0);
|
|
@@ -598,7 +598,7 @@ import {
|
|
|
598
598
|
FreezePane,
|
|
599
599
|
WorkbookProtection,
|
|
600
600
|
DocumentProperties,
|
|
601
|
-
} from 'tinyweb-cells';
|
|
601
|
+
} from 'tinyweb-office-cells';
|
|
602
602
|
```
|
|
603
603
|
|
|
604
604
|
## Dependencies
|
package/dist/index.d.mts
CHANGED
|
@@ -2017,7 +2017,7 @@ declare class XmlSaver {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
2019
|
/**
|
|
2020
|
-
* tinyweb-cells – XML Loader Module (Phase 3)
|
|
2020
|
+
* tinyweb-office-cells – XML Loader Module (Phase 3)
|
|
2021
2021
|
*
|
|
2022
2022
|
* Reads OOXML (.xlsx) ZIP archives and populates Workbook objects.
|
|
2023
2023
|
* Port of the Python `xml_loader.py`.
|
package/dist/index.d.ts
CHANGED
|
@@ -2017,7 +2017,7 @@ declare class XmlSaver {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
2019
|
/**
|
|
2020
|
-
* tinyweb-cells – XML Loader Module (Phase 3)
|
|
2020
|
+
* tinyweb-office-cells – XML Loader Module (Phase 3)
|
|
2021
2021
|
*
|
|
2022
2022
|
* Reads OOXML (.xlsx) ZIP archives and populates Workbook objects.
|
|
2023
2023
|
* Port of the Python `xml_loader.py`.
|