(str, styleType)
| 29668 | |
| 29669 | |
| 29670 | function stylizeWithColor(str, styleType) { |
| 29671 | var style = inspect.styles[styleType]; |
| 29672 | |
| 29673 | if (style) { |
| 29674 | return '\u001b[' + inspect.colors[style][0] + 'm' + str + |
| 29675 | '\u001b[' + inspect.colors[style][1] + 'm'; |
| 29676 | } else { |
| 29677 | return str; |
| 29678 | } |
| 29679 | } |
| 29680 | |
| 29681 | |
| 29682 | function stylizeNoColor(str, styleType) { |
nothing calls this directly
no outgoing calls
no test coverage detected