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

Method warnString

deps/npm/lib/trust-cmd.js:35–41  ·  view source on GitHub ↗
(strings, ...values)

Source from the content-addressed store, hash-verified

33 // Helper to format template strings with color
34 // Blue text with reset color for interpolated values
35 warnString (strings, ...values) {
36 const chalk = this.npm.chalk
37 const message = strings.reduce((result, str, i) => {
38 return result + chalk.blue(str) + (values[i] ? chalk.reset(values[i]) : '')
39 }, '')
40 return message
41 }
42
43 // Log a warning message with blue formatting
44 warn (strings, ...values) {

Callers 3

warnMethod · 0.95
dialogueMethod · 0.95
flagsToOptionsMethod · 0.95

Calls 3

reduceMethod · 0.80
blueMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected