{"size": 422, "ext": "js", "max_stars_repo_path": "tools/cleanup.js", "max_stars_repo_name": "ethereum-alarm-clock/cli", "max_stars_repo_stars_event_min_datetime": "2018-07-03T17:56:21.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-10T12:02:54.000Z", "max_issues_repo_path": "tools/cleanup.js", "max_issues_repo_name": "DeFi-Tools/cli", "max_issues_repo_issues_event_min_datetime": "2018-07-13T13:20:48.000Z", "max_issues_repo_issues_event_max_datetime": "2020-05-26T07:41:05.000Z", "max_forks_repo_path": "tools/cleanup.js", "max_forks_repo_name": "DeFi-Tools/cli", "max_forks_repo_forks_event_min_datetime": "2018-07-06T17:39:00.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-10T12:02:58.000Z"}
{"max_stars_count": 12, "max_issues_count": 46, "max_forks_count": 7, "avg_line_length": 18.347826087, "max_line_length": 59, "alphanum_fraction": 0.5355450237}
const glob = require('glob');
const fs = require('fs');

const delFile = file => {
  fs.unlink(file, (err) => {
    const msg = err ? ` - ${err.message}.` : ' - deleted.';
    console.log(file + msg);
  });
};

glob("stats.json*", (err, files) => {
  for (let file of files) {
    delFile(file);
  }
});

delFile('scheduled.txt');

glob(".eac.log*", (err, files) => {
  for (let file of files) {
    delFile(file);
  }
});