@@ -17,7 +17,7 @@ npm i -g sxr
17
17
18
18
# Usages:
19
19
20
- sxr --model vm.json template .xlsx > output .xlsx
20
+ sxr --model vm.json --output output .xlsx template .xlsx
21
21
```
22
22
23
23
### Local installation
@@ -29,10 +29,10 @@ sxr --model vm.json template.xlsx > output.xlsx
29
29
npm i --save sxr
30
30
31
31
# usages:
32
- node_modules/.bin/sxr --model vm.json template .xlsx > output .xlsx
32
+ node_modules/.bin/sxr --model vm.json --output output .xlsx template .xlsx
33
33
34
34
# usages with npx
35
- npx sxr --model vm.json template .xlsx > output .xlsx
35
+ npx sxr --model vm.json --output output .xlsx template .xlsx
36
36
```
37
37
38
38
#### 2. Additionally, possible to use with packages.json scripts
@@ -42,7 +42,7 @@ npx sxr --model vm.json template.xlsx > output.xlsx
42
42
``` json
43
43
{
44
44
"scripts" : {
45
- "generate-xlsx" :" sxr --model vm.json template .xlsx > output .xlsx"
45
+ "generate-xlsx" :" sxr --model vm.json --output output .xlsx template .xlsx"
46
46
}
47
47
}
48
48
```
@@ -56,11 +56,11 @@ npm run generate-xlsx
56
56
## Examples
57
57
58
58
``` shell script
59
- cat vm.json | sxr template.xlsx > output.xlsx
59
+ cat vm.json | sxr --output output.xlsx template .xlsx
60
60
61
- sxr template.xlsx " {\" jsonData\" :true}" > output.xlsx
61
+ sxr --output output.xlsx template.xlsx " {\" jsonData\" :true}"
62
62
63
- sxr --model vm.json template .xlsx > output .xlsx
63
+ sxr --model vm.json --output output .xlsx template .xlsx
64
64
65
65
sxr --model vm.json -o output.xlsx template.xlsx
66
66
@@ -88,7 +88,7 @@ sxr -o output.xlsx template.xlsx "{\"jsonData\":true}"
88
88
89
89
Library allowing also save output into file by using option ` -o --output <filename> `
90
90
91
- It is also allowed using pipe parameter to forward generated file into another command.
91
+ <!-- TODO: It is also allowed using pipe parameter to forward generated file into another command. -->
92
92
93
93
## The template file
94
94
0 commit comments