function formatArgs() {
    var args = arguments;
    var useColors = this.useColors;

    args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);

    if (!useColors) return args;

    var c = 'color: ' + this.color;
    args = [args[0], c, 'color: inherit'].concat(Array.prototype.slice.call(args, 1));

    // the final "%c" is somewhat tricky, because there could be other
    // arguments passed either before or after the %c, so we need to
    // figure out the correct index to insert the CSS into
    var index = 0;
    var lastC = 0;
    args[0].replace(/%[a-z%]/g, function (match) {
      if ('%%' === match) return;
      index++;
      if ('%c' === match) {
        // we only are interested in the *last* %c
        // (the user may have provided their own)
        lastC = index;
      }
    });

    args.splice(lastC, 0, c);
    return args;
  }
/**
   * Colorize log arguments if enabled.
   *
   * @api public
   */
Colorize log arguments if enabled.
@api public
Colorize log arguments if enabled . @api public
function formatArgs() {
    var args = arguments;
    var useColors = this.useColors;
    args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);
    if (!useColors) return args;
    var c = 'color: ' + this.color;
    args = [args[0], c, 'color: inherit'].concat(Array.prototype.slice.call(args, 1));
    var index = 0;
    var lastC = 0;
    args[0].replace(/%[a-z%]/g, function (match) {
      if ('%%' === match) return;
      index++;
      if ('%c' === match) {
        lastC = index;
      }
    });
    args.splice(lastC, 0, c);
    return args;
  }
function formatArgs ( ) { var args = arguments ; var useColors = this . useColors ; args [ 0 ] = ( useColors ? '%c' : '' ) + this . namespace + ( useColors ? ' %c' : ' ' ) + args [ 0 ] + ( useColors ? '%c ' : ' ' ) + '+' + exports . humanize ( this . diff ) ; if ( ! useColors ) return args ; var c = 'color: ' + this . color ; args = [ args [ 0 ] , c , 'color: inherit' ] . concat ( Array . prototype . slice . call ( args , 1 ) ) ; var index = 0 ; var lastC = 0 ; args [ 0 ] . replace ( / %[a-z%] / g , function ( match ) { if ( '%%' === match ) return ; index ++ ; if ( '%c' === match ) { lastC = index ; } } ) ; args . splice ( lastC , 0 , c ) ; return args ; }
Colorize log arguments if enabled.
Colorize log arguments if enabled .
// the final "%c" is somewhat tricky, because there could be other // arguments passed either before or after the %c, so we need to // figure out the correct index to insert the CSS into // we only are interested in the *last* %c // (the user may have provided their own)