(namespace: string, ...args: unknown[])
| 2 | import { stringToColor } from "./colors/stringToColor"; |
| 3 | |
| 4 | export function debug(namespace: string, ...args: unknown[]) { |
| 5 | const backgroundColor = stringToColor(namespace); |
| 6 | const color = getContrastColor(backgroundColor); |
| 7 | |
| 8 | console.log( |
| 9 | `%c ${namespace} `, |
| 10 | `background-color: ${backgroundColor}; color: ${color};`, |
| 11 | ...args |
| 12 | ); |
| 13 | } |
nothing calls this directly
no test coverage detected