code: function colorize(val) {
      var styles = [];
      for (var _i = 1; _i < arguments.length; _i++) {
          styles[_i - 1] = arguments[_i];
      }
      styles = chek_1.flatten(styles);
      if (chek_1.isObject(val))
          return util_1.inspect(val, null, null, true);
      if (/\./.test(styles[0]))
          styles = styles[0].split('.');
      return colurs.applyAnsi(val, styles);
  }
docs: Colorizes a value.
  
  @param val the value to colorize.
  @param styles the styles to be applied.