Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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} */
87
function
color(c, s) {
88
return
isatty(process.stdout) ? `\u001b[${c}m${s}\u001b[0m` : s
89
}
90
91
function
green(s) {
92
return
color(32, s)
Callers
2
green
Function · 0.85
cyan
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected