(stream, prefix, color, text, params)
| 13 | } |
| 14 | |
| 15 | function printTo(stream, prefix, color, text, params) { |
| 16 | params.unshift(text); |
| 17 | text = util.format.apply(util, params); |
| 18 | |
| 19 | stream.write(printColor(color, true) + prefix + printColor(color) + text.replace(/\*\*(.+?)\*\*/, function (m, t) { |
| 20 | return printColor(color, true) + t + printColor(color); |
| 21 | }) + printColor(null) + "\n"); |
| 22 | } |
| 23 | |
| 24 | function printColor(color, bold) { |
| 25 | if (color === null) { |
no test coverage detected