MCPcopy Index your code
hub / github.com/angular/angular-cli / isTTY

Function isTTY

packages/angular_devkit/build_angular/src/utils/tty.ts:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14export function isTTY(): boolean {
15 // If we force TTY, we always return true.
16 const force = process.env['NG_FORCE_TTY'];
17 if (force !== undefined) {
18 return _isTruthy(force);
19 }
20
21 return !!process.stdout.isTTY && !_isTruthy(process.env['CI']);
22}

Callers 1

SpinnerClass · 0.90

Calls 1

_isTruthyFunction · 0.70

Tested by

no test coverage detected