Add --stdin-filepath to website (#4513)
This commit is contained in:
1 parent
0b659b898d
commit
0ce40b197d
1 file changed
+17
+17
@@ -115,3 +115,20 @@ Change the level of logging for the CLI. Valid options are:
|
||||
- `log` (default)
|
||||
- `debug`
|
||||
- `silent`
|
||||
|
||||
## `--stdin-filepath`
|
||||
|
||||
A path to the file that the Prettier CLI will treat like stdin. For example:
|
||||
|
||||
_abc.css_
|
||||
```css
|
||||
.name { display: none; }
|
||||
```
|
||||
|
||||
_shell_
|
||||
```bash
|
||||
$ cat abc.css | prettier --stdin-filepath abc.css
|
||||
.name {
|
||||
display: none;
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user