MCPcopy Create free account
hub / github.com/LearnBoost/cluster / color

Function color

lib/plugins/debug.js:20–23  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

18 // strip colors
19
20 function color(text) {
21 if (options.colors === false) return text.replace(/\033\[\d+m/g, '');
22 return text
23 }
24
25 // logger
26

Callers 1

debug.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected