tis-cli前端项目快速搭建命令行工具
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.

20 lines
433 B

4 years ago
  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;