Skip to content

Commit 1ce7696

Browse files
committed
p/html-to-text-cli: another caveat with PowerShell
1 parent 337904b commit 1ce7696

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/html-to-text-cli/README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ npm i -g @html-to/text-cli
2828

2929
## Usage
3030

31-
- Use `html-to-text` command;
31+
- Use `html-to-text` command (`html-to-text.cmd` in PowerShell);
3232
- Pipe HTML to `stdin`;
3333
- Get plain text from `stdout`;
3434
- Pass converter options as command arguments.
@@ -39,6 +39,14 @@ npm i -g @html-to/text-cli
3939
> cat ./input.html | html-to-text [commands...] [keys and values...] > ./output.txt
4040
```
4141

42+
In PowerShell:
43+
44+
```shell
45+
PS> Get-Content .\input.html | html-to-text.cmd [commands...] [keys and values...] > .\output.txt
46+
```
47+
48+
`.ps1` wrapper installed by npm might not work with `stdin`, so use `.cmd` instead.
49+
4250
### Available commands
4351

4452
| Command | Alias | Argument | Description

0 commit comments

Comments
 (0)