How to use the prefixStyle function from npmlog
Find comprehensive JavaScript npmlog.prefixStyle code examples handpicked from public code repositorys.
GitHub: Mondego/pyreco

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)
+ 9 other calls in file
GitHub: evanlucas/xnpmlog

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
npmlog.verbose is the most popular function in npmlog (7425 examples)