to-spreadsheet 1.1.2 → 1.1.3
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 +9 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# to-spreadsheet
|
|
2
|
-
npm package to create spreadsheet in node environment
|
|
2
|
+
npm package to create spreadsheet in node environment and in browser
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/to-spreadsheet)
|
|
@@ -19,7 +19,7 @@ npm i to-spreadsheet
|
|
|
19
19
|
[](https://codesandbox.io/s/to-spreadsheet-example-hdmrvc?file=/src/App.tsx)
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
import { generateExcel , EnvironmentType, skipCell } from 'to-spreadsheet/lib/index';
|
|
22
|
+
import { generateExcel , EnvironmentType, skipCell, writeEquation } from 'to-spreadsheet/lib/index';
|
|
23
23
|
|
|
24
24
|
const sampleData = [
|
|
25
25
|
{
|
|
@@ -28,7 +28,7 @@ const sampleData = [
|
|
|
28
28
|
['woof', 'smack'],
|
|
29
29
|
[1],
|
|
30
30
|
[1, 2],
|
|
31
|
-
[1, 2, 3],
|
|
31
|
+
[1, 2, 3, writeEquation('SUM(A5,C5)')],
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
{ title: 'Maifee2', content: [[1], [1, skipCell(3), 2]] },
|
|
@@ -38,3 +38,9 @@ const sampleData = [
|
|
|
38
38
|
generateExcel(sampleData); // <-- by default generate XLSX for node
|
|
39
39
|
generateExcel(sampleData, EnvironmentType.BROWSER); // <-- for browser
|
|
40
40
|
```
|
|
41
|
+
|
|
42
|
+
# Features
|
|
43
|
+
- [x] Multiple sheet support
|
|
44
|
+
- [x] Equations
|
|
45
|
+
- [ ] Cell styling
|
|
46
|
+
- [ ] Sheet styling
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "to-spreadsheet",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "npm package to create spreadsheet in node environment",
|
|
3
|
+
"version": "1.1.3",
|
|
4
|
+
"description": "npm package to create spreadsheet in node environment and in browser",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepare": "npm run build",
|