Skip to content

Commit

Permalink
p/html-to-text-cli: another caveat with PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
KillyMXI committed Dec 2, 2022
1 parent 337904b commit 1ce7696
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/html-to-text-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ npm i -g @html-to/text-cli

## Usage

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

In PowerShell:

```shell
PS> Get-Content .\input.html | html-to-text.cmd [commands...] [keys and values...] > .\output.txt
```

`.ps1` wrapper installed by npm might not work with `stdin`, so use `.cmd` instead.

### Available commands

| Command | Alias | Argument | Description
Expand Down

0 comments on commit 1ce7696

Please sign in to comment.