-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
53 lines (44 loc) · 978 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
'use strict';
var win = require('is-windows')();
var green = require('ansi-green');
var gray = require('ansi-gray');
module.exports = {
on: green(win ? '(*)' : '◉'),
off: win ? '( )' : '◯',
disabled: gray(win ? '(|)' : 'Ⓘ')
};
module.exports.star = {
on: green('★'),
off: '☆',
disabled: gray('☆')
};
module.exports.check = {
on: green(win ? '\u221A' : '✓'),
off: win ? '[ ]' : '☐',
disabled: gray(win ? '\u00D7' : '☒')
};
module.exports.ballot = {
on: green(win ? '[×]' : '☑'),
off: win ? '[ ]' : '☐',
disabled: gray(win ? '\u00D7' : '☒')
};
module.exports.nocolor = {
on: win ? '(*)' : '◉',
off: win ? '( )' : '◯',
disabled: win ? '(|)' : 'Ⓘ',
star: {
on: win ? '*' : '★',
off: '☆',
disabled: '☆'
},
ballot: {
on: '☑',
off: '☐',
disabled: '☒'
},
check: {
on: win ? '\u221A' : '✓',
off: win ? '[ ]' : '☐',
disabled: win ? '\u00D7' : '☒'
}
};