MCPcopy
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

4var s = 'string';
5
6function a(s, code) {
7 return '\x1B[' + code.toString() + 'm' + s + '\x1B[39m';
8}
9
10function aE(s, color, code) {
11 assert.equal(s[color], a(s, code));

Callers 1

aEFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected