(c: string, fallback: string)
| 9 | return (output as Writable & { isTTY?: boolean }).isTTY === true; |
| 10 | }; |
| 11 | export const unicodeOr = (c: string, fallback: string) => (unicode ? c : fallback); |
| 12 | export const S_STEP_ACTIVE = unicodeOr('◆', '*'); |
| 13 | export const S_STEP_CANCEL = unicodeOr('■', 'x'); |
| 14 | export const S_STEP_ERROR = unicodeOr('▲', 'x'); |
no outgoing calls
no test coverage detected