code: function formatOptions(opts) {
      if (opts) {
        if (_.isObject(opts)) {
          opts.name = opts.name || defaultConfigName;
        } else if ('string' === typeof opts) {
          opts = {
            name: opts
          };
        }
      } else {
        opts = {
          name: defaultConfigName
        };
      }
      return opts;
    }
docs: Add a name field if missing and if opts is an object.
  Make a new object with name field (set to opts) if opts is a string.
  
  @param {Object/String} opts The options object or string with the required name
  @returns {Object} The configuration
  @private
  @ignore