{"size": 333, "ext": "js", "max_stars_repo_path": "example/app.js", "max_stars_repo_name": "vicanso/influxdb-warner", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "example/app.js", "max_issues_repo_name": "vicanso/influxdb-warner", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "example/app.js", "max_forks_repo_name": "vicanso/influxdb-warner", "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": 27.75, "max_line_length": 67, "alphanum_fraction": 0.6516516517}
const configFile = require('path').join(__dirname, './config.yml');
const Warner = require('..');

const config = require('fs').readFileSync(configFile, 'utf8');

const warner = new Warner(config);
warner.on('warn', (data) => {
  // send email to dev
  console.info(data);
});
warner.start(60 * 1000, () => Promise.resolve()).ref();
