MCPcopy Create free account
hub / github.com/Effect-TS/effect / annotate

Function annotate

packages/effect/src/unstable/cli/internal/ansi.ts:72–75  ·  view source on GitHub ↗
(text: string, ...styles: Array<string | Array<string>>)

Source from the content-addressed store, hash-verified

70export const cyanBright = `${ESC}96m`
71
72export const annotate = (text: string, ...styles: Array<string | Array<string>>) => {
73 const flat = styles.flat()
74 return `${flat.join("")}${text}${reset}`
75}
76
77export const combine = (...styles: Array<string>): Array<string> => styles
78

Callers 1

renderPromptFunction · 0.50

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected