MCPcopy Index your code
hub / github.com/MALSync/MALSync / logC

Function logC

test/headless/test.js:77–95  ·  view source on GitHub ↗
(block, text, indetion = 0, color = 'blue')

Source from the content-addressed store, hash-verified

75}
76
77function logC(block, text, indetion = 0, color = 'blue') {
78 let nColor = 0;
79 switch (color) {
80 case 'red':
81 nColor = 31;
82 break;
83 case 'blue':
84 nColor = 36;
85 break;
86 case 'green':
87 nColor = 32;
88 break;
89 case 'yellow':
90 nColor = 33;
91 break;
92 }
93 text = `\x1b[${nColor}m${text}\x1b[0m`;
94 log(block, text, indetion);
95}
96
97function printLogBlock(block) {
98 if (mode.blockLog && logBlocks[block]) {

Callers 1

testPageCaseFunction · 0.85

Calls 1

logFunction · 0.85

Tested by

no test coverage detected