File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
packages/html-to-text-cli Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ npm i -g @html-to/text-cli
28
28
29
29
## Usage
30
30
31
- - Use ` html-to-text ` command;
31
+ - Use ` html-to-text ` command ( ` html-to-text.cmd ` in PowerShell) ;
32
32
- Pipe HTML to ` stdin ` ;
33
33
- Get plain text from ` stdout ` ;
34
34
- Pass converter options as command arguments.
@@ -39,6 +39,14 @@ npm i -g @html-to/text-cli
39
39
> cat ./input.html | html-to-text [commands...] [keys and values...] > ./output.txt
40
40
```
41
41
42
+ In PowerShell:
43
+
44
+ ``` shell
45
+ PS> Get-Content .\i nput.html | html-to-text.cmd [commands...] [keys and values...] > .\o utput.txt
46
+ ```
47
+
48
+ ` .ps1 ` wrapper installed by npm might not work with ` stdin ` , so use ` .cmd ` instead.
49
+
42
50
### Available commands
43
51
44
52
| Command | Alias | Argument | Description
You can’t perform that action at this time.
0 commit comments