{"size": 401, "ext": "js", "max_stars_repo_path": "core/services/config/configService.js", "max_stars_repo_name": "AhmetCavus/Collect.IO", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "core/services/config/configService.js", "max_issues_repo_name": "AhmetCavus/Collect.IO", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "core/services/config/configService.js", "max_forks_repo_name": "AhmetCavus/Collect.IO", "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": 16.7083333333, "max_line_length": 59, "alphanum_fraction": 0.6184538653}
﻿'use strict';

var fs = require('fs');
var configFile = '../settings/config.json';

class ConfigService {

    constructor() {}

    get tag() {
        return 'ConfigService';
    }

    get config() {
        return JSON.parse(fs.readFileSync(configFile));
    }

}

var configService;
module.exports = () => {
    if(!configService) configService = new ConfigService();
    return configService;
}