You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add support for Chalk color functions in prefix colors
Add support for all Chalk color functions: hex(), bgHex(), rgb(), bgRgb(),
ansi256(), bgAnsi256(), plus shorthand syntax #RRGGBB and bg#RRGGBB.
Functions and modifiers can be chained (e.g., rgb(255,136,0).bold,
black.bgHex(#00FF00).dim).
The CLI now correctly parses color arguments containing commas inside
function calls like rgb(255,255,0) by using a parenthesis-aware splitter.
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,8 @@ Check out documentation and other usage examples in the [`docs` directory](./doc
112
112
Possible values: `index`, `pid`, `time`, `command`, `name`, `none`, or a template (eg `[{time} process: {pid}]`).
113
113
Default: the name of the process, or its index if no name is set.
114
114
- `prefixColors`: a list of colors or a string as supported by [Chalk](https://www.npmjs.com/package/chalk) and additional style `auto` for an automatically picked color.
115
+
Supports all Chalk color functions: `#RRGGBB`, `bg#RRGGBB`, `hex()`, `bgHex()`, `rgb()`, `bgRgb()`, `ansi256()`, `bgAnsi256()`.
116
+
Functions and modifiers can be chained (e.g., `rgb(255,136,0).bold`, `black.bgHex(#00FF00).dim`).
115
117
If concurrently would run more commands than there are colors, the last color is repeated, unless if the last color value is `auto` which means following colors are automatically picked to vary.
116
118
Prefix colors specified per-command take precedence over this list.
117
119
- `prefixLength`: how many characters to show when prefixing with `command`. Default: `10`
0 commit comments