MCPcopy Index your code
hub / github.com/Doorman11991/smallcode / paint

Function paint

bench/diff.js:163–163  ·  view source on GitHub ↗
(text, code)

Source from the content-addressed store, hash-verified

161};
162const colorize = (process.stdout.isTTY && !process.env.NO_COLOR);
163function paint(text, code) { return colorize ? `${code}${text}${C.reset}` : text; }
164
165function pct(n) { return `${(n * 100).toFixed(1)}%`; }
166function ms(n) { return `${(n / 1000).toFixed(1)}s`; }

Callers 1

renderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected