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

Function defineColorAlias

lib/internal/util/inspect.js:478–490  ·  view source on GitHub ↗
(target, alias)

Source from the content-addressed store, hash-verified

476};
477
478function defineColorAlias(target, alias) {
479 ObjectDefineProperty(inspect.colors, alias, {
480 __proto__: null,
481 get() {
482 return this[target];
483 },
484 set(value) {
485 this[target] = value;
486 },
487 configurable: true,
488 enumerable: false,
489 });
490}
491
492defineColorAlias('gray', 'grey');
493defineColorAlias('gray', 'blackBright');

Callers 1

inspect.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…