How to use the success function from npmlog

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

17
18
19
20
21
22
23
24
25
26
  npmlog.start('', message)
}

npmlog.addLevel('success', 3001, { fg: 'green' })
function success (message) {
  npmlog.success('', message)
}

module.exports = {
  error,
fork icon26
star icon1
watch icon2

+ 3 other calls in file

190
191
192
193
194
195
196
197
198
199

if (loglevel) {
  log.level = loglevel;
}

// handle log.success()
log.addLevel("success", 3001, { fg: "green", bold: true });

// create logger that subclasses use
Object.defineProperty(this, "logger", {
fork icon0
star icon0
watch icon0