MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / color

Function color

javascript/selenium-webdriver/testing/index.js:87–89  ·  view source on GitHub ↗

@suppress {checkTypes}

(c, s)

Source from the content-addressed store, hash-verified

85
86/** @suppress {checkTypes} */
87function color(c, s) {
88 return isatty(process.stdout) ? `\u001b[${c}m${s}\u001b[0m` : s
89}
90
91function green(s) {
92 return color(32, s)

Callers 2

greenFunction · 0.85
cyanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected