MCPcopy
hub / github.com/webpack/webpack / writeColored

Function writeColored

lib/node/nodeConsole.js:147–154  ·  view source on GitHub ↗
(prefix, colorFn)

Source from the content-addressed store, hash-verified

145 */
146 const writeColored =
147 (prefix, colorFn) =>
148 (...args) => {
149 if (currentCollapsed > 0) return;
150 clearStatusMessage();
151 const str = indent(util.format(...args), prefix, colorFn);
152 stream.write(`${str}\n`);
153 writeStatusMessage();
154 };
155
156 /** @type {<T extends unknown[]>(...args: T) => void} */
157 const writeGroupMessage = writeColored("<-> ", (str) => c.bold(c.cyan(str)));

Callers 1

nodeConsole.jsFile · 0.85

Calls 4

clearStatusMessageFunction · 0.85
writeStatusMessageFunction · 0.85
writeMethod · 0.80
indentFunction · 0.70

Tested by

no test coverage detected