MCPcopy Create free account
hub / github.com/npm/cli / warn

Method warn

lib/trust-cmd.js:44–46  ·  view source on GitHub ↗
(strings, ...values)

Source from the content-addressed store, hash-verified

42
43 // Log a warning message with blue formatting
44 warn (strings, ...values) {
45 log.warn('trust', this.warnString(strings, ...values))
46 }
47
48 // dialogue is non-log text that is different from our usual npm prefix logging
49 // it should always show to the user unless --json is specified

Callers 15

createConfigCommandMethod · 0.95
logOptionsMethod · 0.80
constructorMethod · 0.80
#loadMethod · 0.80
#getErrorMethod · 0.80
checkExpectedMethod · 0.80
checkDevEnginesMethod · 0.80
getJsonBufferFunction · 0.80
finishMethod · 0.80
readUsernameFunction · 0.80
readEmailFunction · 0.80
auditErrorFunction · 0.80

Calls 1

warnStringMethod · 0.95

Tested by

no test coverage detected