MCPcopy
hub / github.com/serverless/serverless / colorizeString

Function colorizeString

packages/util/src/logger/index.js:190–193  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

188 * Colorize a string based on its "safe" color
189 */
190const colorizeString = (str) => {
191 const colorFn = stringToSafeColor(str)
192 return colorFn(str)
193}
194
195/**
196 * Set the Renderer's global settings.

Callers 5

#devmodeStreamMethod · 0.90
onDataMethod · 0.90
#entityLogNoticeMethod · 0.90
#entityLogErrorMethod · 0.90
writeStdErrFunction · 0.85

Calls 1

stringToSafeColorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…