{"size": 405, "ext": "js", "max_stars_repo_path": "src/9-plugins/match-height/parseOptions.js", "max_stars_repo_name": "camfindlay/rua", "max_stars_repo_stars_event_min_datetime": "2019-01-09T00:19:58.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-11T07:48:41.000Z", "max_issues_repo_path": "src/9-plugins/match-height/parseOptions.js", "max_issues_repo_name": "data-govt-nz/rua", "max_issues_repo_issues_event_min_datetime": "2018-10-17T02:32:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T01:34:10.000Z", "max_forks_repo_path": "src/9-plugins/match-height/parseOptions.js", "max_forks_repo_name": "data-govt-nz/rua", "max_forks_repo_forks_event_min_datetime": "2019-08-19T03:15:10.000Z", "max_forks_repo_forks_event_max_datetime": "2019-08-19T03:15:10.000Z"}
{"max_stars_count": 2, "max_issues_count": 56, "max_forks_count": 1, "avg_line_length": 15.5769230769, "max_line_length": 37, "alphanum_fraction": 0.5802469136}
/*
 *  parseOptions
 *  handle plugin options
 */

export default function (options) {
  var opts = {
    byRow: true,
    property: 'height',
    target: null,
    remove: false
  }

  if (typeof options === 'object') {
    return $.extend(opts, options)
  }

  if (typeof options === 'boolean') {
    opts.byRow = options
  } else if (options === 'remove') {
    opts.remove = true
  }

  return opts
}
