Skip to content

Commit edb276f

Browse files
authored
Merge branch 'master' into feature/158-template-formula-cell
2 parents ca53ec8 + d34e73f commit edb276f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/xlsx-renderer-cli/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ npm i -g sxr
1717

1818
# Usages:
1919

20-
sxr --model vm.json template.xlsx > output.xlsx
20+
sxr --model vm.json --output output.xlsx template.xlsx
2121
```
2222

2323
### Local installation
@@ -29,10 +29,10 @@ sxr --model vm.json template.xlsx > output.xlsx
2929
npm i --save sxr
3030

3131
# 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
3333

3434
# usages with npx
35-
npx sxr --model vm.json template.xlsx > output.xlsx
35+
npx sxr --model vm.json --output output.xlsx template.xlsx
3636
```
3737

3838
#### 2. Additionally, possible to use with packages.json scripts
@@ -42,7 +42,7 @@ npx sxr --model vm.json template.xlsx > output.xlsx
4242
```json
4343
{
4444
"scripts": {
45-
"generate-xlsx":"sxr --model vm.json template.xlsx > output.xlsx"
45+
"generate-xlsx":"sxr --model vm.json --output output.xlsx template.xlsx"
4646
}
4747
}
4848
```
@@ -56,11 +56,11 @@ npm run generate-xlsx
5656
## Examples
5757

5858
```shell script
59-
cat vm.json | sxr template.xlsx > output.xlsx
59+
cat vm.json | sxr --output output.xlsx template.xlsx
6060

61-
sxr template.xlsx "{\"jsonData\":true}" > output.xlsx
61+
sxr --output output.xlsx template.xlsx "{\"jsonData\":true}"
6262

63-
sxr --model vm.json template.xlsx > output.xlsx
63+
sxr --model vm.json --output output.xlsx template.xlsx
6464

6565
sxr --model vm.json -o output.xlsx template.xlsx
6666

@@ -88,7 +88,7 @@ sxr -o output.xlsx template.xlsx "{\"jsonData\":true}"
8888

8989
Library allowing also save output into file by using option `-o --output <filename>`
9090

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. -->
9292

9393
## The template file
9494

0 commit comments

Comments
 (0)