@lotics/cli 0.110.0 → 0.112.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 CHANGED
@@ -157,6 +157,11 @@ The CLI bundles Lotics's own xlsx and docx engines so you can read, write, and e
157
157
  # .xlsx
158
158
  lotics xlsx read ./report.xlsx # → JSON of sheets, cells, merges
159
159
  lotics xlsx write ./out.xlsx '{"sheets":[{"name":"S1","cells":{"A1":"Hi","B1":42}}]}'
160
+ # A cell is a bare value, or an object with numFmt / style / formula:
161
+ lotics xlsx write ./out.xlsx '{"sheets":[{"name":"S1","cells":{
162
+ "A1":{"value":"Tổng","style":{"fontBold":true}},
163
+ "B1":{"value":1234567,"numFmt":"#,##0"},
164
+ "B2":{"formula":"B1*0.1","numFmt":"#,##0"}}}]}' # unknown cell keys are rejected, not ignored
160
165
  lotics xlsx set-cell ./report.xlsx 'Sheet1!A1' '=SUM(B:B)'
161
166
  lotics xlsx add-sheet ./report.xlsx 'Summary'
162
167
  lotics xlsx merge ./report.xlsx 'Sheet1!A1:C1'