MCPcopy Index your code
hub / github.com/nodejs/node / write

Function write

lib/internal/util/inspect.js:578–584  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

576 }
577
578 const write = (str) => {
579 const idx = depth % palette.length;
580 // Safeguard against bugs in the implementation.
581 const color = palette[idx] ?? palette[0];
582 out += color[0] + str + color[1];
583 return idx;
584 };
585
586 function writeDepth(str, incDepth, incI) {
587 depth += incDepth;

Callers 3

writeGroupFunction · 0.70
writeDepthFunction · 0.70
highlightRegExpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…