{"size": 540, "ext": "js", "max_stars_repo_path": "lib/languages.js", "max_stars_repo_name": "Djeg/tagsgen", "max_stars_repo_stars_event_min_datetime": "2016-11-04T15:32:43.000Z", "max_stars_repo_stars_event_max_datetime": "2016-11-04T15:32:43.000Z", "max_issues_repo_path": "lib/languages.js", "max_issues_repo_name": "Djeg/tagsgen", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/languages.js", "max_forks_repo_name": "Djeg/tagsgen", "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": 30.0, "max_line_length": 59, "alphanum_fraction": 0.6}
var defaultLanguages = require('./default-languages.json');
var fs               = require('fs');
var merge            = require('merge');
var customLanguages  = (function () {
    if (fs.existsSync(`${process.cwd()}/.tagsgen.json`)) {
        return require(`${process.cwd()}/.tagsgen.json`);
    }

    var home = process.env.HOME || process.env.USERPROFILE;
    if (fs.existsSync(`${home}/.tagsgen.json`)) {
        return require(`${home}/.tagsgen.json`);
    }

    return;
})();

module.exports = customLanguages || defaultLanguages;
