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