source: trip-planner-front/node_modules/@angular/cli/utilities/tty.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 767 bytes
Line 
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.isTTY = void 0;
11function _isTruthy(value) {
12 // Returns true if value is a string that is anything but 0 or false.
13 return value !== undefined && value !== '0' && value.toUpperCase() !== 'FALSE';
14}
15function isTTY() {
16 // If we force TTY, we always return true.
17 const force = process.env['NG_FORCE_TTY'];
18 if (force !== undefined) {
19 return _isTruthy(force);
20 }
21 return !!process.stdout.isTTY && !_isTruthy(process.env['CI']);
22}
23exports.isTTY = isTTY;
Note: See TracBrowser for help on using the repository browser.