UNPKG

595 BJavaScriptView Raw
1"use strict";
2Object.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 */
10const colors = require("ansi-colors");
11exports.colors = colors;
12const tty_1 = require("tty");
13// Typings do not contain the function call (added in Node.js v9.9.0)
14exports.supportsColor = process.stdout instanceof tty_1.WriteStream &&
15 process.stdout.getColorDepth() > 1;
16colors.enabled = exports.supportsColor;