MCPcopy
hub / github.com/OscarGodson/EpicEditor / colorize

Function colorize

Jakefile.js:14–25  ·  view source on GitHub ↗
(str, color)

Source from the content-addressed store, hash-verified

12}
13
14function colorize(str, color) {
15 var colors =
16 { 'blue': '34m'
17 , 'cyan': '36m'
18 , 'green': '01;32m'
19 , 'magenta': '35m'
20 , 'red': '31m'
21 , 'yellow': '33m'
22 }
23
24 return colors[color] ? '\033[' + colors[color] + str + '\033[39m' : str
25}
26
27desc('Lint all js files')
28task('lint', [], function () {

Callers 1

Jakefile.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected