@wae/open-excel 0.0.0-stage → 0.0.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 +50 -2
- package/dist/cli.d.ts +10 -0
- package/dist/cli.js +1137 -0
- package/dist/errors.d.ts +50 -0
- package/dist/errors.js +55 -0
- package/dist/formats.d.ts +44 -0
- package/dist/formats.js +39 -0
- package/dist/gui.d.ts +53 -0
- package/dist/gui.js +90 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +13 -0
- package/dist/native.d.ts +36 -0
- package/dist/native.js +55 -0
- package/dist/open-excel.d.ts +55 -0
- package/dist/open-excel.js +225 -0
- package/dist/service.d.ts +47 -0
- package/dist/service.js +95 -0
- package/dist/smoke.test.d.ts +10 -0
- package/dist/smoke.test.js +159 -0
- package/dist/types.d.ts +640 -0
- package/dist/types.js +11 -0
- package/locales/en-US/cli.json +90 -0
- package/locales/locales.json +7 -0
- package/package.json +58 -4
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli": {
|
|
3
|
+
"intro": "OpenExcel — read, inspect and export spreadsheet workbooks on one declared model.",
|
|
4
|
+
"cmd": {
|
|
5
|
+
"capabilities": "Print what this build supports, honestly",
|
|
6
|
+
"create": "Create a workbook project file",
|
|
7
|
+
"open": "Open a project file and print its sheets and cells",
|
|
8
|
+
"summary": "Print the current sheets, revisions and cell counts of a project file",
|
|
9
|
+
"save": "Write an open project back to a project file",
|
|
10
|
+
"edit": "Set one cell of a project file and optionally save the result, or pass --ops with a JSON array of SDK edit operations",
|
|
11
|
+
"sort": "Sort the rows of a range by one column and optionally save the result",
|
|
12
|
+
"copy": "Copy a range to a new anchor, keeping the source, and optionally save the result",
|
|
13
|
+
"move": "Move a range to a new anchor, clearing the source, and optionally save the result",
|
|
14
|
+
"swap": "Swap two equal-sized ranges, exchanging their contents, and optionally save the result",
|
|
15
|
+
"flip": "Mirror a range horizontally or vertically in place, and optionally save the result",
|
|
16
|
+
"replace": "Replace text in cell values across a range or the used sheet, and optionally save the result",
|
|
17
|
+
"format": "Apply cell styles to a range and optionally save the result",
|
|
18
|
+
"layout": "Set column widths or row heights and optionally save the result",
|
|
19
|
+
"row": "Insert or delete whole rows and optionally save the result",
|
|
20
|
+
"column": "Insert or delete whole columns and optionally save the result",
|
|
21
|
+
"freeze": "Freeze rows and columns, or clear the frozen pane, and optionally save the result",
|
|
22
|
+
"sheet": "Add, rename, remove, duplicate, move or hide a sheet and optionally save the result",
|
|
23
|
+
"inspect": "Run formula, reference and range checks on a project file",
|
|
24
|
+
"cell": "Read one cell of a project file with its evaluated value",
|
|
25
|
+
"range": "Read a rectangle of cells with their evaluated values",
|
|
26
|
+
"recalc": "Recompute every formula of a project file",
|
|
27
|
+
"find": "Search evaluated values and formulas of a project file",
|
|
28
|
+
"export": "Export a project file to a spreadsheet format",
|
|
29
|
+
"gui": "Open the OpenExcel Studio window"
|
|
30
|
+
},
|
|
31
|
+
"opt": {
|
|
32
|
+
"out": "File to write",
|
|
33
|
+
"title": "Workbook title",
|
|
34
|
+
"template": "Template to start from",
|
|
35
|
+
"overwrite": "Replace the output file when it already exists",
|
|
36
|
+
"checks": "Comma-separated checks: formulas, references, cycles, types, ranges, styles",
|
|
37
|
+
"format": "Export format: xlsx, xlsm, csv, tsv, json, html or pdf",
|
|
38
|
+
"sheet": "Sheet name or id",
|
|
39
|
+
"cell": "A1 cell reference such as B4",
|
|
40
|
+
"value": "Text, number, boolean or null to store in the cell",
|
|
41
|
+
"formula": "Formula to store in the cell, with or without the leading `=`",
|
|
42
|
+
"ops": "JSON array of edit operations; replaces the single-cell options",
|
|
43
|
+
"range": "A1 range such as A1:C4",
|
|
44
|
+
"to-target": "Top-left cell of the copy destination, such as D1",
|
|
45
|
+
"to-move-target": "Top-left cell of the move destination, such as D1",
|
|
46
|
+
"to-swap-target": "Top-left cell of the second, equal-sized swap rectangle, such as D1",
|
|
47
|
+
"axis": "Mirror axis: horizontal swaps columns left to right, vertical swaps rows top to bottom",
|
|
48
|
+
"find": "Text to find in cell values",
|
|
49
|
+
"replace": "Replacement text",
|
|
50
|
+
"match-case": "Match text case exactly",
|
|
51
|
+
"limit": "Maximum occurrences to replace",
|
|
52
|
+
"column": "Sort column: a one-based offset inside the range or a column letter",
|
|
53
|
+
"descending": "Sort from largest to smallest",
|
|
54
|
+
"header": "Keep the first row of the range in place",
|
|
55
|
+
"bold": "Render the text in bold",
|
|
56
|
+
"italic": "Render the text in italics",
|
|
57
|
+
"font-size": "Font size in points",
|
|
58
|
+
"font-color": "Font color such as #1a1a1a",
|
|
59
|
+
"fill": "Cell fill color such as #ffeeaa",
|
|
60
|
+
"number-format": "Number format code applied to the range",
|
|
61
|
+
"align": "Horizontal alignment: left, center, right, justify, distribute or fill",
|
|
62
|
+
"wrap": "Wrap long text inside the cell",
|
|
63
|
+
"layout-column": "Column to size: a one-based number or a column letter",
|
|
64
|
+
"width": "Column width in Excel character units",
|
|
65
|
+
"layout-row": "One-based row to size",
|
|
66
|
+
"height": "Row height in points",
|
|
67
|
+
"hide": "Hide the given column or row",
|
|
68
|
+
"insert-row": "One-based row the new rows appear before",
|
|
69
|
+
"delete-row": "One-based first row to delete",
|
|
70
|
+
"insert-column": "Column the new columns appear before: a one-based number or a letter",
|
|
71
|
+
"delete-column": "First column to delete: a one-based number or a letter",
|
|
72
|
+
"count": "Number of rows or columns to insert or delete, default 1",
|
|
73
|
+
"add": "Name of the new sheet",
|
|
74
|
+
"rename": "Sheet to rename",
|
|
75
|
+
"to": "New sheet name for --rename",
|
|
76
|
+
"remove": "Sheet to remove",
|
|
77
|
+
"duplicate": "Sheet to duplicate",
|
|
78
|
+
"as": "Name of the duplicated sheet",
|
|
79
|
+
"move": "Sheet to move",
|
|
80
|
+
"index": "Zero-based position the sheet moves to",
|
|
81
|
+
"hide-sheet": "Sheet to hide",
|
|
82
|
+
"show-sheet": "Sheet to make visible again",
|
|
83
|
+
"very-hidden-sheet": "Sheet to hide from the sheet tab menu as well",
|
|
84
|
+
"at": "A1 cell that marks the freeze boundary, such as C2",
|
|
85
|
+
"rows": "Number of rows to keep frozen",
|
|
86
|
+
"columns": "Number of columns to keep frozen",
|
|
87
|
+
"clear": "Remove the frozen pane"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
{
|
|
2
|
+
"bin": {
|
|
3
|
+
"open-excel": "./dist/cli.js"
|
|
4
|
+
},
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@wae/commander": "0.0.7"
|
|
7
|
+
},
|
|
8
|
+
"description": "Excel workbook read, inspect, formula and export contracts behind one declared surface",
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@types/node": "^22.20.4",
|
|
11
|
+
"typescript": "^5.9.2"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"locales"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"xlsx",
|
|
28
|
+
"excel",
|
|
29
|
+
"formula",
|
|
30
|
+
"pivot",
|
|
31
|
+
"spreadsheet",
|
|
32
|
+
"wae"
|
|
33
|
+
],
|
|
34
|
+
"license": "MPL-2.0",
|
|
35
|
+
"main": "./dist/index.js",
|
|
2
36
|
"name": "@wae/open-excel",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
37
|
+
"optionalDependencies": {
|
|
38
|
+
"@wae/open-excel-darwin-arm64": "0.0.0",
|
|
39
|
+
"@wae/open-excel-darwin-x64": "0.0.0",
|
|
40
|
+
"@wae/open-excel-linux-arm64": "0.0.0",
|
|
41
|
+
"@wae/open-excel-linux-x64": "0.0.0",
|
|
42
|
+
"@wae/open-excel-win32-x64": "0.0.0"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"directory": "projects/packages/open-excel",
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git+https://github.com/nyar-os/OpenExcel.git"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsc -p tsconfig.json",
|
|
54
|
+
"test": "tsc -p tsconfig.test.json && node --test dist-test/tests/smoke.test.js",
|
|
55
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
56
|
+
},
|
|
57
|
+
"type": "module",
|
|
58
|
+
"types": "./dist/index.d.ts",
|
|
59
|
+
"version": "0.0.0"
|
|
60
|
+
}
|