{"size": 385, "ext": "js", "max_stars_repo_path": "server/utils/env.js", "max_stars_repo_name": "styleyan/foodie-web-frontEnd", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/utils/env.js", "max_issues_repo_name": "styleyan/foodie-web-frontEnd", "max_issues_repo_issues_event_min_datetime": "2021-03-10T21:23:01.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-19T03:20:15.000Z", "max_forks_repo_path": "server/utils/env.js", "max_forks_repo_name": "styleyan/foodie-web-frontEnd", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 20.2631578947, "max_line_length": 81, "alphanum_fraction": 0.6675324675}
'use strict'

/**
 * 获取配置
 */
const fs = require('fs')
const path = require('path')
const NODE_ENV = process.env.NODE_ENV

let fileName = 'config'

if (NODE_ENV === 'dev') {
  fileName = 'config-dev'
}

const cFilePath = path.join(__dirname, `../../config/${fileName}.properties`)
const data = JSON.parse(fs.readFileSync(cFilePath).toString().replace(/\s*/g,""))

module.exports = data