1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | /**
|
4 | * @license
|
5 | * Copyright Google Inc. All Rights Reserved.
|
6 | *
|
7 | * Use of this source code is governed by an MIT-style license that can be
|
8 | * found in the LICENSE file at https://angular.io/license
|
9 | */
|
10 | const colors = require("ansi-colors");
|
11 | exports.colors = colors;
|
12 | const tty_1 = require("tty");
|
13 | // Typings do not contain the function call (added in Node.js v9.9.0)
|
14 | exports.supportsColor = process.stdout instanceof tty_1.WriteStream &&
|
15 | process.stdout.getColorDepth() > 1;
|
16 | colors.enabled = exports.supportsColor;
|