style-xlsx-m 0.1.15 → 0.1.17

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
@@ -33,7 +33,7 @@ Install browser:
33
33
 
34
34
 
35
35
  ## 🗒 What I added?
36
- -- 1 When you use read or readFile (second put type:'file') your file style-xlsx-m get cells style.
36
+ -- When you use read (second property put {type:'file'}) or readFile your file get cells style.
37
37
 
38
38
  ### read or readFile
39
39
 
@@ -74,7 +74,7 @@ XLSX.writeFile(wb, "style-xlsx-m-example.xlsm");
74
74
 
75
75
  ```js
76
76
 
77
- const A1 = { v: "line\nbreak", t: "s" } // key s is a style key for your cell
77
+ const A1 = { v: "line\nbreak", t: "s", s:{} } // key s is a style key for your cell
78
78
 
79
79
  const BORDER_STYLE = 'think'
80
80
 
@@ -83,11 +83,13 @@ XLSX.writeFile(wb, "style-xlsx-m-example.xlsm");
83
83
  }
84
84
 
85
85
  // Aligment
86
- A1.s.aligment = {
87
- vertical: 'bottom', // "top" or "center" or "bottom"
88
- horizontal : 'left', // "left" or "center" or "right"
89
- wrapText: false, // true or false
90
- textRotation: 0 // 0 to 180, or 255 // 180 is rotated down 180 degrees, 255 is special, aligned vertically
86
+ A1.s = {
87
+ aligment: {
88
+ vertical: 'bottom', // "top" or "center" or "bottom"
89
+ horizontal : 'left', // "left" or "center" or "right"
90
+ wrapText: false, // true or false
91
+ textRotation: 0 // 0 to 180, or 255 // 180 is rotated down 180 degrees, 255 is special, aligned vertically
92
+ }
91
93
  }
92
94
 
93
95
  const border = {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "style-xlsx-m",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "author": "mor8t (Shukurov Shahrom)",
5
5
  "description": "style-xlsx-m is a custom xlsx and xlsx-js-style version library",
6
6
  "keywords": [
7
7
  "excel",
8
8
  "xls",
9
9
  "xlsx",
10
- "xlsb",
11
10
  "xlsm",
11
+ "xlsb",
12
12
  "ods",
13
13
  "csv",
14
14
  "dbf",
@@ -16,7 +16,11 @@
16
16
  "sylk",
17
17
  "office",
18
18
  "spreadsheet",
19
- "style"
19
+ "style",
20
+ "print",
21
+ "format",
22
+ "workbook",
23
+ "worksheet"
20
24
  ],
21
25
  "bin": {
22
26
  "xlsx": "./bin/xlsx.njs"