// package
is-interactive
type: "module"
// preferences
// replacements (1)
snippet::is-interactive
Simple or drop-in replacementThis package is no longer necessary. You can check if the current environment is interactive using `process.stdout.isTTY` and checking that it is not running in CI.
// example
Boolean(stream?.isTTY && !process.env.CI);