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

Function keyPattern

test/parallel/test-util-inspect.js:2447–2449  ·  view source on GitHub ↗
(k)

Source from the content-addressed store, hash-verified

2445{
2446 const [open, close] = inspect.colors[inspect.styles.string];
2447 const keyPattern = (k) => new RegExp(
2448 `\\u001b\\[${open}m\\[${k}\\]\\u001b\\[${close}m: `
2449 );
2450 const colored = util.inspect(new Uint8Array(0), { showHidden: true, colors: true });
2451 assert.match(colored, keyPattern('BYTES_PER_ELEMENT'));
2452 assert.match(colored, keyPattern('length'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…