btford / write-good

Naive linter for English prose
MIT License
4.94k stars 188 forks source link

Support stdin #72

Open mankoff opened 7 years ago

mankoff commented 7 years ago

as in detex file.tex | writegood

RichardLitt commented 7 years ago

PRs accepted. :)

einar-io commented 6 years ago

I had this exact problem and used this workaround:

detex file.tex | writegood /dev/stdin

einar-io commented 3 years ago

My previous workaround does not work for me now, so instead I create a temporary file:

echo "weasel words in it could be divided into three main categories" > pipe.temp; npx write-good pipe.temp; rm pipe.temp