lib/renderer.js
function() {
  if (cache.styles) {
    return cache.styles;
  }
  
  cache.styles = {};
  cache.styles[CONSTS.LOG]     = chalk.white;
  cache.styles[CONSTS.INFO]    = chalk.cyan;
  cache.styles[CONSTS.SUCCESS] = chalk.bold.green;
  cache.styles[CONSTS.WARN]    = chalk.yellow;
  cache.styles[CONSTS.ERROR]   = chalk.bold.red;
  
  return cache.styles;
}
function() {
  if (cache.styles) {
    return cache.styles;
  }
  
  cache.styles = {};
  cache.styles[CONSTS.LOG]     = chalk.white;
  cache.styles[CONSTS.INFO]    = chalk.cyan;
  cache.styles[CONSTS.SUCCESS] = chalk.bold.green;
  cache.styles[CONSTS.WARN]    = chalk.yellow;
  cache.styles[CONSTS.ERROR]   = chalk.bold.red;
  
  return cache.styles;
}
function ( ) { if ( cache . styles ) { return cache . styles ; } cache . styles = { } ; cache . styles [ CONSTS . LOG ] = chalk . white ; cache . styles [ CONSTS . INFO ] = chalk . cyan ; cache . styles [ CONSTS . SUCCESS ] = chalk . bold . green ; cache . styles [ CONSTS . WARN ] = chalk . yellow ; cache . styles [ CONSTS . ERROR ] = chalk . bold . red ; return cache . styles ; }
Gets the chalk styles from cache, creating cache object if it doesn't exist.
@return {object}
Gets the chalk styles from cache creating cache object if it doesn t exist .