{"size": 229, "ext": "js", "max_stars_repo_path": "child_process/handle_error.js", "max_stars_repo_name": "feihong/node-examples", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "child_process/handle_error.js", "max_issues_repo_name": "feihong/node-examples", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "child_process/handle_error.js", "max_forks_repo_name": "feihong/node-examples", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.2666666667, "max_line_length": 56, "alphanum_fraction": 0.6288209607}
/*

If the child process fails, print the error.

*/

const {exec} = require('child_process')

exec('python count.py abc', (error, stdout, stderr) => {
  if (error) {
    console.log('Error:', error)
  }
  console.log(stdout)
})
