{"size": 314, "ext": "js", "max_stars_repo_path": "node_modules/broccoli-dependency-funnel/src/utils/exists-stat.js", "max_stars_repo_name": "melissaroman/ember-addon-example", "max_stars_repo_stars_event_min_datetime": "2019-08-16T21:06:55.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-16T21:06:55.000Z", "max_issues_repo_path": "node_modules/broccoli-dependency-funnel/src/utils/exists-stat.js", "max_issues_repo_name": "melissaroman/ember-addon-example", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/broccoli-dependency-funnel/src/utils/exists-stat.js", "max_forks_repo_name": "melissaroman/ember-addon-example", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.4444444444, "max_line_length": 76, "alphanum_fraction": 0.6242038217}
'use strict';

const fs = require('fs');
/**
 * Stats a path. If it exists, it returns the stat information. Otherwise it
 * returns null.
 *
 * @param {String} path
 * @return {fs.Stats}
 */
module.exports = function existsStat(path) {
  try {
    return fs.statSync(path);
  } catch (e) {
    return null;
  }
}
