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

Function defaultPredicate

deps/npm/lib/utils/key-values.js:3–8  ·  view source on GitHub ↗
(key, value, chalk)

Source from the content-addressed store, hash-verified

1const { output, META } = require('proc-log')
2
3const defaultPredicate = (key, value, chalk) => {
4 if (value === null || value === undefined) {
5 return null
6 }
7 return chalk.green(value)
8}
9
10function logObject (values, { chalk, json, predicate = defaultPredicate }) {
11 if (json) {

Callers 1

key-values.jsFile · 0.85

Calls 1

greenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…