MCPcopy Index your code
hub / github.com/reactopt/reactopt / printLine

Function printLine

main.js:82–105  ·  view source on GitHub ↗
(type, string)

Source from the content-addressed store, hash-verified

80
81// styling for different console logs
82function printLine(type, string) {
83 switch (type) {
84 case 'heading':
85 log(chalk.black.bgWhite.dim(string));
86 log('');
87 break;
88 case 'pass':
89 log(chalk.green.bold(string));
90 break;
91 case 'fail':
92 log(chalk.red.bold(string));
93 break;
94 case 'suggestion':
95 log(chalk.gray(string));
96 break;
97 case 'line':
98 log('');
99 log(chalk.gray('-----------------------------------------------------------------------------------'));
100 log('');
101 break;
102 default:
103 break;
104 }
105}
106
107let indentD = ' $ ';
108let indent = ' ';

Callers 3

logAuditsFunction · 0.85
loadTimeFunction · 0.85
componentRerendersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected