File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
import chalk from 'chalk'
2
2
import figures from 'figures'
3
- import _ from 'lodash'
3
+ import startCase from 'lodash/startCase '
4
4
5
5
const NS_SEPERATOR = chalk . blue ( figures ( ' › ' ) )
6
6
@@ -17,20 +17,18 @@ const ICONS = {
17
17
ready : figures ( '♥' )
18
18
}
19
19
20
- const pad = str => _ . padEnd ( str , 9 )
21
-
22
20
export default class FancyReporter {
23
21
constructor ( stream , options = { } ) {
24
22
this . stream = stream || process . stderr
25
23
}
26
24
27
25
formatBadge ( type , color = 'blue' ) {
28
- return chalk [ 'bg' + _ . startCase ( color ) ] . black ( ` ${ type . toUpperCase ( ) } ` ) + ' '
26
+ return chalk [ 'bg' + startCase ( color ) ] . black ( ` ${ type . toUpperCase ( ) } ` ) + ' '
29
27
}
30
28
31
29
formatTag ( type , color = 'blue' ) {
32
30
const icon = ICONS [ type ] || ICONS . default
33
- return chalk [ color ] ( pad ( `${ icon } ${ type . toLowerCase ( ) } ` ) ) + ' '
31
+ return chalk [ color ] ( `${ icon } ${ type . toLowerCase ( ) } ` ) + ' '
34
32
}
35
33
36
34
clear ( ) {
You can’t perform that action at this time.
0 commit comments