{"size": 235, "ext": "js", "max_stars_repo_path": "lib/utils/to-buffer.js", "max_stars_repo_name": "funlogic-io/zwave-serialapi", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/utils/to-buffer.js", "max_issues_repo_name": "funlogic-io/zwave-serialapi", "max_issues_repo_issues_event_min_datetime": "2020-05-30T21:43:56.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-10T17:34:26.000Z", "max_forks_repo_path": "lib/utils/to-buffer.js", "max_forks_repo_name": "funlogic-io/zwave-serialapi", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 33.5714285714, "max_line_length": 65, "alphanum_fraction": 0.6680851064}
module.exports = function (data) {
  if (Buffer.isBuffer(data)) return data
  if (typeof data === 'string') return Buffer.from(data, 'hex')
  if (data === undefined || data === null) return Buffer.alloc(0)
  return Buffer.from(data)
}
