MCPcopy
hub / github.com/di-sukharev/opencommit / createSupportsColor

Function createSupportsColor

out/cli.cjs:65696–65702  ·  view source on GitHub ↗
(stream4, options = {})

Source from the content-addressed store, hash-verified

65694 if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
65695 return 1;
65696 }
65697 if ("COLORTERM" in env) {
65698 return 1;
65699 }
65700 return min;
65701}
65702function createSupportsColor(stream4, options = {}) {
65703 const level = _supportsColor(stream4, {
65704 streamIsTTY: stream4 && stream4.isTTY,
65705 ...options

Callers 1

cli.cjsFile · 0.85

Calls 2

_supportsColorFunction · 0.85
translateLevelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…