Whether stdin is an interactive terminal, i.e. a prompt could be answered.
Headless agents and CI pipelines get false; commands must not block on a
prompt in that case.
Returns boolean
True when stdin is a TTY
Example
if (!stdinIsInteractive()) { thrownewError('pass --yes to skip the confirmation'); }
Whether stdin is an interactive terminal, i.e. a prompt could be answered. Headless agents and CI pipelines get false; commands must not block on a prompt in that case.