How to use the prefixStyle function from npmlog

Find comprehensive JavaScript npmlog.prefixStyle code examples handpicked from public code repositorys.

206
207
208
209
210
211
212
213
214
215
10% over this value, then it is sliced down to 90% of this value.

The reason for the 10% window is so that it doesn't have to resize a
large array on every log entry.

## log.prefixStyle

* {Object}

A style object that specifies how prefixes are styled.  (See below)
fork icon19
star icon22
watch icon13

+ 9 other calls in file

7
8
9
10
11
12
13
14
15
16
log.addLevel('info', 2000, { fg: 'brightGreen' }, 'info')
log.addLevel('warn', 4000, { fg: 'brightYellow', bg: null }, 'warn')
log.addLevel('error', 5000, { fg: 'brightRed' }, 'ERR!')

var defaults = {
  prefixStyle: log.prefixStyle
, headingStyle: log.headingStyle
, loglevel: log.level
, stream: process.stderr
, timestamp: true
fork icon0
star icon0
watch icon2