How to use the headingStyle function from npmlog

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

212
213
214
215
216
217
218
219
220
221

* {Object}

A style object that specifies how prefixes are styled.  (See below)

## log.headingStyle

* {Object}

A style object that specifies how the heading is styled.  (See below)
fork icon19
star icon22
watch icon13

+ 9 other calls in file

8
9
10
11
12
13
14
15
16
17
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
, heading: ''
fork icon0
star icon0
watch icon2