diff --git a/src/utils/color.ts b/src/utils/color.ts index efd40d3..6c3f9ed 100644 --- a/src/utils/color.ts +++ b/src/utils/color.ts @@ -49,6 +49,10 @@ const COLORS = { * @return {String} Message */ export function color(message: string, fgColor?: Color, bgColor?: Color): string { + if ('NO_COLOR' in process.env) { + return message; + } + return [ get(COLORS, `${fgColor}.fg`, ''), get(COLORS, `${bgColor}.bg`, ''),