()
| 141 | } |
| 142 | |
| 143 | function getStyleCache() { |
| 144 | if (styleCache === undefined) { |
| 145 | styleCache = { __proto__: null }; |
| 146 | const colors = inspect.colors; |
| 147 | for (const key of ObjectGetOwnPropertyNames(colors)) { |
| 148 | const codes = colors[key]; |
| 149 | if (codes) { |
| 150 | styleCache[key] = codesToStyle(codes); |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | return styleCache; |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * Returns the cached ANSI escape sequences for a hex color. |
no test coverage detected
searching dependent graphs…