MCPcopy Create free account
hub / github.com/nodejs/node / COLOR_PALETTE

Function COLOR_PALETTE

deps/npm/lib/utils/display.js:21–33  ·  view source on GitHub ↗
({ chalk: c })

Source from the content-addressed store, hash-verified

19
20// Translates log levels to chalk colors
21const COLOR_PALETTE = ({ chalk: c }) => ({
22 heading: c.bold,
23 title: c.blueBright,
24 timing: c.magentaBright,
25 // loglevels
26 error: c.red,
27 warn: c.yellow,
28 notice: c.cyanBright,
29 http: c.green,
30 info: c.cyan,
31 verbose: c.blue,
32 silly: c.blue.dim,
33})
34
35const LEVEL_OPTIONS = {
36 silent: {

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected