MCPcopy
hub / github.com/bombshell-dev/clack / unicodeOr

Function unicodeOr

packages/prompts/src/common.ts:11–11  ·  view source on GitHub ↗
(c: string, fallback: string)

Source from the content-addressed store, hash-verified

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

Callers 2

common.tsFile · 0.85
progress-bar.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected