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.

46 lines
969 B

4 years ago
  1. 'use strict';
  2. const isWindows = process.platform === 'win32';
  3. const isLinux = process.platform === 'linux';
  4. const windows = {
  5. bullet: '•',
  6. check: '√',
  7. cross: '×',
  8. ellipsis: '...',
  9. heart: '❤',
  10. info: 'i',
  11. line: '─',
  12. middot: '·',
  13. minus: '-',
  14. plus: '+',
  15. question: '?',
  16. questionSmall: '﹖',
  17. pointer: '>',
  18. pointerSmall: '»',
  19. warning: '‼'
  20. };
  21. const other = {
  22. ballotCross: '✘',
  23. bullet: '•',
  24. check: '✔',
  25. cross: '✖',
  26. ellipsis: '…',
  27. heart: '❤',
  28. info: 'ℹ',
  29. line: '─',
  30. middot: '·',
  31. minus: '-',
  32. plus: '+',
  33. question: '?',
  34. questionFull: '?',
  35. questionSmall: '﹖',
  36. pointer: isLinux ? '▸' : '❯',
  37. pointerSmall: isLinux ? '‣' : '›',
  38. warning: '⚠'
  39. };
  40. module.exports = isWindows ? windows : other;
  41. Reflect.defineProperty(module.exports, 'windows', { enumerable: false, value: windows });
  42. Reflect.defineProperty(module.exports, 'other', { enumerable: false, value: other });