Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Marak/colors.js
/ a
Function
a
tests/basic-test.js:6–8 ·
view source on GitHub ↗
(s, code)
Source
from the content-addressed store, hash-verified
4
var
s =
'string'
;
5
6
function
a(s, code) {
7
return
'\x1B['
+ code.toString() +
'm'
+ s +
'\x1B[39m'
;
8
}
9
10
function
aE(s, color, code) {
11
assert.equal(s[color], a(s, code));
Callers
1
aE
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected