style-xlsx-m 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/README.md +7 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -32,7 +32,7 @@ Install browser:
32
32
  - Over time, will be added new and customized features.
33
33
 
34
34
 
35
- ## 🗒 What did I add
35
+ ## 🗒 What I added?
36
36
  -- 1 When you use read or readFile (second put type:'file') your file style-xlsx-m get cells style.
37
37
 
38
38
  ### read or readFile
@@ -43,8 +43,8 @@ const workbook = XLSX.readFile('./example.xlsx',{ cellStyles: true, bookVBA: tru
43
43
 
44
44
  // STEP 2
45
45
  let worksheet = [
46
- "!col":[ { wpx: 10 }, { wpx: 15 }, { wpx:30 } ]
47
- "!row":[ { hpx: 10 }, { hpx: 15 }, { hpx:30 } ]
46
+ "!col":[ { wpx: 10 }, { wpx: 15 }, { wpx:30 } ],
47
+ "!row":[ { hpx: 10 }, { hpx: 15 }, { hpx:30 } ],
48
48
  { v: "line\nbreak", t: "s" },
49
49
  { v: "Courier: 24", t: "s" },
50
50
  { v: 45, t: "n" },
@@ -57,18 +57,17 @@ XLSX.utils.book_append_sheet(workbook, worksheet, false, false, sheetname);
57
57
  // STEP 4
58
58
  XLSX.writeFile(wb, "style-xlsx-m-example.xlsm");
59
59
  ```
60
-
61
- -- Step 1:
60
+ - Step 1:
62
61
  './excample.xlsx' - is a path to your excel file.
63
62
  Second property is a option { cellStyle: true } for get cells style (but now can't get in xls format).
64
63
 
65
- -- Step 2:
64
+ - Step 2:
66
65
  Create data rows worksheet
67
66
 
68
- -- Step 3:
67
+ - Step 3:
69
68
  Get workbook data with style and set workbook.Sheets.sheetname to worksheet
70
69
 
71
- -- Step 4:
70
+ - Step 4:
72
71
  Save your file (xlsm and xls are format for save macros)
73
72
 
74
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "style-xlsx-m",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "author": "mor8t (Shahrom)",
5
5
  "description": "style-xlsx-m is a custom XLSX (SheetJs) library with styling (xlsx-js-style)",
6
6
  "keywords": [