code: function (str, parserOptions) {
    parserOptions = parserOptions || {};
    var map = parserOptions.map || identity;
    var loadMethod = parserOptions.loadMethod || 'safeLoad';
    var data = index[loadMethod](str, omit(parserOptions, ['map', 'loadMethod'])) || {};
    return map(data, map);
  }
docs: /* istanbul ignore next