Skip to content

Commit 73fd89e

Browse files
author
Pooya Parsa
committed
feat(colorize): try chalk built-in colors first
1 parent 9ba119d commit 73fd89e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const colorize = (color) => {
2222
return chalk.hex(color);
2323
}
2424

25-
return chalk.keyword(color);
25+
return chalk[color] || chalk.keyword(color);
2626
};
2727

2828
export const renderBar = (progress, color) => {

0 commit comments

Comments
 (0)