/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ export function isTTY(): boolean { const force = process.env['NG_FORCE_TTY']; if (force !== undefined) { return !(force === '0' || force.toUpperCase() === 'FALSE'); } const ci = process.env['CI']; return !!process.stdout.isTTY && (!ci || ci === '0' || ci.toUpperCase() === 'FALSE'); }