Skip to content

Commit a117a2a

Browse files
authored
Export isColorAllowed function for external use
1 parent 6634a2d commit a117a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/utils/cli-colors.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
type ColorTextFn = (text: string) => string;
22

3-
const isColorAllowed = () => !process.env.NO_COLOR;
3+
export const isColorAllowed = () => !process.env.NO_COLOR;
44
const colorIfAllowed = (colorFn: ColorTextFn) => (text: string) =>
55
isColorAllowed() ? colorFn(text) : text;
66

0 commit comments

Comments
 (0)