xlsx-template-browser 0.1.0 → 0.1.2
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 +14 -7
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
On-the-fly generation of .xlsx (Excel) files directly within the browser using
|
|
4
4
|
templates constructed in Excel.
|
|
5
5
|
|
|
6
|
+
This library utilizes the native browser DOMParser and XMLSerializer for XML
|
|
7
|
+
manipulation, resulting in fewer dependencies and a smaller bundle size
|
|
8
|
+
compared to other similar projects.
|
|
9
|
+
|
|
6
10
|
The basic principle is this: You create a template in Excel. This can be
|
|
7
11
|
formatted as you wish, contain formulae etc. In this file, you put placeholders
|
|
8
12
|
using a specific syntax (see below). In code, you build a map of placeholders
|
|
@@ -144,10 +148,13 @@ To use the library, you need the code like this:
|
|
|
144
148
|
|
|
145
149
|
There are few altertantives for this library:
|
|
146
150
|
|
|
147
|
-
* [xlsx-template](https://www.npmjs.com/package/xlsx-template) - this library
|
|
148
|
-
inspiration. The only issue that it works in Node only.
|
|
149
|
-
has more dependencies.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
* [xlsx-template](https://www.npmjs.com/package/xlsx-template) - this library
|
|
152
|
+
was the source of inspiration. The only issue that it works in Node only.
|
|
153
|
+
Also it allows you to insert images and has more dependencies. In contrast to
|
|
154
|
+
**xlsx-template**, **xlsx-template-browser** also support property accessors
|
|
155
|
+
with bracket notation or mixed notation.
|
|
156
|
+
* [node-xlsx](https://www.npmjs.com/package/node-xlsx) - this library allows to
|
|
157
|
+
manipulate the data in worksheet, but the style of cells will be lost. The
|
|
158
|
+
fork [js-xlsx](https://github.com/protobi/js-xlsx/) might address the issue,
|
|
159
|
+
but it hasn't been updated for 4 years and could be considered overkill.
|
|
160
|
+
Also **node-xlsx** is under Apache2 license.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xlsx-template-browser",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "On-the-fly generation of .xlsx (Excel) files directly within the browser using templates constructed in Excel.",
|
|
5
5
|
"main": "./lib/index",
|
|
6
6
|
"files": [
|
|
@@ -27,5 +27,14 @@
|
|
|
27
27
|
"jszip": "^3.10.1"
|
|
28
28
|
},
|
|
29
29
|
"readme": "",
|
|
30
|
-
"readmeFilename": "README.md"
|
|
30
|
+
"readmeFilename": "README.md",
|
|
31
|
+
"keywords": [
|
|
32
|
+
"excel",
|
|
33
|
+
"xlsx",
|
|
34
|
+
"template",
|
|
35
|
+
"placeholder",
|
|
36
|
+
"office",
|
|
37
|
+
"spreadsheet",
|
|
38
|
+
"property accessor"
|
|
39
|
+
]
|
|
31
40
|
}
|