Created
March 2, 2023 09:36
-
-
Save jpbochi/45f222d1271e84dfb6bfdf2b00aa831f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import chalk from 'chalk'; | |
import isUnicodeSupported from 'is-unicode-supported'; | |
const main = { | |
info: chalk.blue('ℹ'), | |
success: chalk.green('✔'), | |
warning: chalk.yellow('⚠'), | |
error: chalk.red('✖'), | |
}; | |
const fallback = { | |
info: chalk.blue('i'), | |
success: chalk.green('√'), | |
warning: chalk.yellow('‼'), | |
error: chalk.red('×'), | |
}; | |
const logSymbols = isUnicodeSupported() ? main : fallback; | |
export default logSymbols; |
I'm actually using ✗
for errors. ✘
is also a good candidate.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
may want to combine with https://github.com/amalfra/junit-cli-report-viewer