(length, fillStr = "-")
| 8875 | exports.printLogColors = printLogColors; |
| 8876 | let linesMap = new Map(); |
| 8877 | const getLine = (length, fillStr = "-") => { |
| 8878 | if (length == 0) |
| 8879 | return ""; |
| 8880 | let key = length + "|" + fillStr; |
| 8881 | if (linesMap.get(key) != null) |
| 8882 | return linesMap.get(key); |
| 8883 | for (var index = 0, tmpRet = ""; index < length; index++) |
| 8884 | tmpRet += fillStr; |
| 8885 | linesMap.set(key, tmpRet); |
| 8886 | return tmpRet; |
| 8887 | }; |
| 8888 | exports.getLine = getLine; |
| 8889 | globalThis.LOG = exports.LOG; |
| 8890 | globalThis.LOGJSON = exports.LOGJSON; |
no test coverage detected