Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/343dev/optimizt
/ buildColor
Function
buildColor
lib/colorize.js:4–4 ·
view source on GitHub ↗
(start, end)
Source
from the content-addressed store, hash-verified
2
const
string_ = arguments_.join(
' '
);
3
const
isTTY = Boolean(process.stdout.isTTY);
4
const
buildColor = (start, end) => `${isTTY ? start :
''
}${string_}${isTTY ? end :
''
}`;
5
6
return
{
7
dim: buildColor(
'\u{1B}[2m'
,
'\u{1B}[22m'
),
Callers
1
colorize
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected