{"size": 385, "ext": "js", "max_stars_repo_path": "lib/react-d3/d3DataToJSX.js", "max_stars_repo_name": "koga73/react-d3-library", "max_stars_repo_stars_event_min_datetime": "2016-05-17T23:22:24.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T18:47:53.000Z", "max_issues_repo_path": "lib/react-d3/d3DataToJSX.js", "max_issues_repo_name": "2Djordjevic/react-d3-library", "max_issues_repo_issues_event_min_datetime": "2016-06-09T04:20:12.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-01T13:00:31.000Z", "max_forks_repo_path": "lib/react-d3/d3DataToJSX.js", "max_forks_repo_name": "2Djordjevic/react-d3-library", "max_forks_repo_forks_event_min_datetime": "2016-05-17T02:51:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-25T22:53:34.000Z"}
{"max_stars_count": 1479, "max_issues_count": 32, "max_forks_count": 106, "avg_line_length": 29.6153846154, "max_line_length": 86, "alphanum_fraction": 0.7220779221}
import React, { Component } from 'react';
import extractData from './extractData';

module.exports = nodes => {

  // If nodes is a single element wrap it in an array for extractData to work properly
  if(!Array.isArray(nodes)) nodes = [nodes];

  // Extract all the relevant data for React createElement from each DOM node.
  let reactData = extractData(nodes);

  return reactData;
}