{"size": 245, "ext": "js", "max_stars_repo_path": "lib/utils/is-new-file.js", "max_stars_repo_name": "shizgnit/bower-browser", "max_stars_repo_stars_event_min_datetime": "2015-01-27T17:49:43.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-04T18:35:24.000Z", "max_issues_repo_path": "lib/utils/is-new-file.js", "max_issues_repo_name": "shizgnit/bower-browser", "max_issues_repo_issues_event_min_datetime": "2015-01-27T17:57:52.000Z", "max_issues_repo_issues_event_max_datetime": "2016-07-07T15:38:48.000Z", "max_forks_repo_path": "lib/utils/is-new-file.js", "max_forks_repo_name": "shizgnit/bower-browser", "max_forks_repo_forks_event_min_datetime": "2015-01-27T19:07:41.000Z", "max_forks_repo_forks_event_max_datetime": "2017-12-14T12:27:35.000Z"}
{"max_stars_count": 161, "max_issues_count": 13, "max_forks_count": 18, "avg_line_length": 14.4117647059, "max_line_length": 53, "alphanum_fraction": 0.5795918367}
'use strict';

var fs = require('fs');

module.exports = function (filepath, tty) {

  try {
    var stat = fs.statSync(filepath);
    var isNew = new Date() - stat.mtime < tty * 1000;
  }
  catch (e) {
    return false;
  }
  return isNew;

};
