(color, msg)
| 2 | import { getLogDateTime } from "./time.js" |
| 3 | |
| 4 | function basePrint(color, msg) { |
| 5 | console.log(`${color}%s %s\x1B[0m`, `[${getLogDateTime(new Date())}]`, msg) |
| 6 | } |
| 7 | |
| 8 | function printRed(msg) { |
| 9 | basePrint("\x1B[31m", msg) |
no test coverage detected