MCPcopy Index your code
hub / github.com/codeaashu/claude-code / colorize

Function colorize

src/utils/treeify.ts:50–53  ·  view source on GitHub ↗
(text: string, colorKey?: keyof Theme)

Source from the content-addressed store, hash-verified

48 const visited = new WeakSet<object>()
49
50 function colorize(text: string, colorKey?: keyof Theme): string {
51 if (!colorKey) return text
52 return color(colorKey, themeName)(text)
53 }
54
55 function growBranch(
56 node: TreeNode | string,

Callers 2

growBranchFunction · 0.70
treeifyFunction · 0.70

Calls 1

colorFunction · 0.85

Tested by

no test coverage detected