source: trip-planner-front/node_modules/ansi-colors/symbols.js@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.6 KB
Line 
1'use strict';
2
3const isHyper = process.env.TERM_PROGRAM === 'Hyper';
4const isWindows = process.platform === 'win32';
5const isLinux = process.platform === 'linux';
6
7const common = {
8 ballotDisabled: '☒',
9 ballotOff: '☐',
10 ballotOn: '☑',
11 bullet: '•',
12 bulletWhite: '◦',
13 fullBlock: '█',
14 heart: '❤',
15 identicalTo: '≡',
16 line: '─',
17 mark: '※',
18 middot: '·',
19 minus: '-',
20 multiplication: '×',
21 obelus: '÷',
22 pencilDownRight: '✎',
23 pencilRight: '✏',
24 pencilUpRight: '✐',
25 percent: '%',
26 pilcrow2: '❡',
27 pilcrow: '¶',
28 plusMinus: '±',
29 section: '§',
30 starsOff: '☆',
31 starsOn: '★',
32 upDownArrow: '↕'
33};
34
35const windows = Object.assign({}, common, {
36 check: '√',
37 cross: '×',
38 ellipsisLarge: '...',
39 ellipsis: '...',
40 info: 'i',
41 question: '?',
42 questionSmall: '?',
43 pointer: '>',
44 pointerSmall: '»',
45 radioOff: '( )',
46 radioOn: '(*)',
47 warning: '‼'
48});
49
50const other = Object.assign({}, common, {
51 ballotCross: '✘',
52 check: '✔',
53 cross: '✖',
54 ellipsisLarge: '⋯',
55 ellipsis: '…',
56 info: 'ℹ',
57 question: '?',
58 questionFull: '?',
59 questionSmall: '﹖',
60 pointer: isLinux ? '▸' : '❯',
61 pointerSmall: isLinux ? '‣' : '›',
62 radioOff: '◯',
63 radioOn: '◉',
64 warning: '⚠'
65});
66
67module.exports = (isWindows && !isHyper) ? windows : other;
68Reflect.defineProperty(module.exports, 'common', { enumerable: false, value: common });
69Reflect.defineProperty(module.exports, 'windows', { enumerable: false, value: windows });
70Reflect.defineProperty(module.exports, 'other', { enumerable: false, value: other });
Note: See TracBrowser for help on using the repository browser.