We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6634a2d commit a117a2aCopy full SHA for a117a2a
packages/common/utils/cli-colors.util.ts
@@ -1,6 +1,6 @@
1
type ColorTextFn = (text: string) => string;
2
3
-const isColorAllowed = () => !process.env.NO_COLOR;
+export const isColorAllowed = () => !process.env.NO_COLOR;
4
const colorIfAllowed = (colorFn: ColorTextFn) => (text: string) =>
5
isColorAllowed() ? colorFn(text) : text;
6
0 commit comments