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

Function isTruthy

packages/angular_devkit/schematics_cli/bin/schematics.ts:556–559  ·  view source on GitHub ↗
(value: undefined | string)

Source from the content-addressed store, hash-verified

554
555function isTTY(): boolean {
556 const isTruthy = (value: undefined | string) => {
557 // Returns true if value is a string that is anything but 0 or false.
558 return value !== undefined && value !== '0' && value.toUpperCase() !== 'FALSE';
559 };
560
561 // If we force TTY, we always return true.
562 const force = process.env['NG_FORCE_TTY'];

Callers 1

isTTYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected