Handle no input from stdin() #1150
Unanswered
cannonrush
asked this question in
Help needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm want to pipe the input directly into my script, but handle the case where the
stdin
is empty. My script:Is there any solution that
zx
provides, or do I have to usePromise.race
?Beta Was this translation helpful? Give feedback.
All reactions