UNPKG

604 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.colors = void 0;
4const ansiColors = require("ansi-colors");
5const tty_1 = require("tty");
6const supportsColor = process.stdout instanceof tty_1.WriteStream && process.stdout.getColorDepth() > 1;
7// Create a separate instance to prevent unintended global changes to the color configuration
8// Create function is not defined in the typings. See: https://github.com/doowb/ansi-colors/pull/44
9const colors = ansiColors.create();
10exports.colors = colors;
11colors.enabled = supportsColor;
12``;
13//# sourceMappingURL=color.js.map
\No newline at end of file