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

Function addCodes

test/sequential/test-util-debug.js:73–73  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

71 if (forceColors) {
72 const { colors, styles } = util.inspect;
73 const addCodes = (arr) => [`\x1B[${arr[0]}m`, `\x1B[${arr[1]}m`];
74 const num = addCodes(colors[styles.number]);
75 const str = addCodes(colors[styles.string]);
76 const start = `${section.toUpperCase()} ${num[0]}${child.pid}${num[1]}`;

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…