(str: string, { color = 'green', lineDown = 1 } = {})
| 12 | export const isObject = (val: any) => val !== null && !Array.isArray(val) && typeof val === 'object'; |
| 13 | |
| 14 | export const printRow = (str: string, { color = 'green', lineDown = 1 } = {}) => { |
| 15 | console.log(''); |
| 16 | console.log(chalk[color].bold(str)); |
| 17 | lineDown && console.log(''); |
| 18 | }; |
| 19 | |
| 20 | export const printError = (str: string) => { |
| 21 | printRow(str, { color: 'red' }); |
no test coverage detected