版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
435 B

  1. import chalk from 'chalk';
  2. import isUnicodeSupported from 'is-unicode-supported';
  3. const main = {
  4. info: chalk.blue('ℹ'),
  5. success: chalk.green('✔'),
  6. warning: chalk.yellow('⚠'),
  7. error: chalk.red('✖'),
  8. };
  9. const fallback = {
  10. info: chalk.blue('i'),
  11. success: chalk.green('√'),
  12. warning: chalk.yellow('‼'),
  13. error: chalk.red('×'),
  14. };
  15. const logSymbols = isUnicodeSupported() ? main : fallback;
  16. export default logSymbols;