#empty #stdin #echo

app emptypipe

Run a command if stdin is empty

4 releases

0.2.2 May 1, 2019
0.2.0 Apr 21, 2019
0.1.1 Apr 3, 2019
0.1.0 Apr 3, 2019

#19 in #empty

MIT license

3KB

emptypipe

Run a command if stdin is empty

  echo | emptypipe echo 2

Run a command if stdin is not empty

  echo 1 | emptypipe -i echo 2

No runtime deps