MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / wrap

Function wrap

apps/desktop/src/cli/help.ts:31–34  ·  view source on GitHub ↗
(code: string, value: string)

Source from the content-addressed store, hash-verified

29const USE_COLOR = colorEnabled()
30
31function wrap(code: string, value: string): string {
32 if (!USE_COLOR || !value) return value
33 return `${code}${value}${RESET}`
34}
35
36const bold = (s: string): string => wrap('\x1b[1m', s)
37const dim = (s: string): string => wrap('\x1b[2m', s)

Callers 6

boldFunction · 0.85
dimFunction · 0.85
italicFunction · 0.85
cyanFunction · 0.85
yellowFunction · 0.85
magentaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected